irt.org FAQ Knowledge Base Q845
Adam Edell on July 20, 2000 at 13:31:47:
This was exactly my question, too! What in the world is the:
window.onerror = supressError for??? Is this essential??
The question was "Q845: From the main window I open a smaller child window, in this child window, if a user selects a link, I want to load the new page in the main browser window and close the child window. How do I do this?"
Here are the scripts:
In the main window:
<a href="popup.html" target="mywindow" onClick="openawindow();return false">click here</a>
Notice that I use regular HTML links and override them with onClick... then I use return false for IE5 to not link to the HTML link... this is the MOST compatible I can think of...
Here is the script and HTML for the popup window (all links are regular HTML!)...
opener.name = "mainwindow"
<a href="http://www.yahoo.com" target="mainwindow" onClick="return closewindow()">go to yahoo in main window></a>
The only remaining question still remains, what's the:
window.onerror = supressError for???
Love your site!
Other feedback on 'irt.org FAQ Knowledge Base Q845' - show all