Click to See Complete Forum and Search --> : Selecting a selection in a select box...


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?

khalidali63
06-01-2003, 01:38 PM
That is because the page you opened is not in your domain..out of domain access is anot allowed in browser security model...oops
:-)

Cactus Hugger
06-01-2003, 01:41 PM
So, is there any way around that?

khalidali63
06-01-2003, 02:04 PM
I seriously doubt if thre is one,but on theother hand I never tried to find one..