If I open a window using
window.open(\'myurl.html\', \'windowname\', \'width=100,height=100\');
How do I refer to the new window (from the
If you didn't save a reference to the window then there is no way to restore it. However, if that window is still open and if the page loaded there belongs to the same domain as your page, you can run JavaScript code in it:
window.open("javascript:doSomething()", "windowname");
Whether that's sufficient in your scenario depends on what you are trying to achieve.