[thelist] JavaScript: focus on another window

Tab Alleman talleman at autobex.com
Wed Dec 13 16:25:33 CST 2000


I'm trying to write an onclick handler in a window named 'A' that will set
focus on an already-open window named 'B', but haven't been able to figure
it out yet.  I've tried:

window['B'].focus();
navigator.window['B'].focus();
navigator.B.focus();
B.focus();

all of which return a "..is not an object" error.  So what's the magic word
that I'm missing here?






More information about the thelist mailing list