Cactus Hugger
06-01-2003, 01:32 PM
Okay, real simple: A script opens a window, like so:
theWindow = window.open("http://www.neopets.com/games/neggsweeper/index.phtml","daWin","");
Then, later on I try to select the second option from a select box (Non multiple) like so:
theWindow.document.game_form.game_level.options[1].selected = true;
The forms name is game_form and the select box is named game_level
But I get, "Permission denied." Why?
theWindow = window.open("http://www.neopets.com/games/neggsweeper/index.phtml","daWin","");
Then, later on I try to select the second option from a select box (Non multiple) like so:
theWindow.document.game_form.game_level.options[1].selected = true;
The forms name is game_form and the select box is named game_level
But I get, "Permission denied." Why?