posted 17 years ago
I place 'window.open("blah.html")' inside an array element. When I retrieve it, I want it to do the action as opening a new window. But it does not. I have to write down explicitly this command, then it works. Does someone know why it is like this? Can I use array element direct as executing a command? If yes, how?
for example, I did:
var arr = new Array();
arr[0] = "window.open(\"blah.html\")";
later, when I tried to direct execute it by using
arr[0]; or
var tmp = arr[0]; tmp;
its not openning a new window.
SCJA, SCJP5.0, SCBCD, SCWCD