View Full Version : how to make a popup close & open a new window
CarlosSanchez
03-30-2003, 07:48 PM
Is it possible to have a small popup ad come up, and if a user selects to click the popup, it closes itself and opens another full size browser window with a new url? Any help is appreciated. Thanks
HairyTeeth
03-30-2003, 08:18 PM
Put this in the popup:
function openerURL(){
opener.document.location = "http://www.codingforums.com"
self.close()
}
This script changes the url in the window that the popup was opened from (i.e. the opener).
Edit: sorry, i misread your question (how could i do that you may well ask!)
boywonder
03-30-2003, 08:20 PM
<a href="somepage.htm" target="_blank" onclick="self.close(); return true;">click</a>
that would be for another new window, not the opener.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.