I need some help with a javascript - after doing a "openPopWin", how do I get a link to go back to the main window?
Not actually a "close", lets say a link back to a registration page.
thanks in advance for the help!
Chris
| SitePoint Sponsor |
I need some help with a javascript - after doing a "openPopWin", how do I get a link to go back to the main window?
Not actually a "close", lets say a link back to a registration page.
thanks in advance for the help!
Chris




Hi,
I am not sure if I entirely understand your question but if you want a link clicked in a popup window open in the parent window (the browser window where the popup was opened from) you firstly need to add this code into your parent window:
Then in the popup window you would create a link tat opens in the parent window by:Code:<script language="Javascript"> <!-- self.name="original" //--> </script>
I hope that is what you are looking for.Code:<a href="somepage.htm" target="original">Link</a>
Bookmarks