Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

close/launch window in netscape

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi--im doing a site that requires a small pop-up window--
this window links to another site in a new window--I need the first window (actually the second smaller one )to close when the third window is launched--It works fine for me in ie--
but in netscape it just closes without launching the new window--
this must sound a little confusing--go look


only the upper left button ( music pro ) works--

how can I have this work in netscape--
thank you all
 
not a Netscape guru, but maybe the onclick is executing before the new window is created... try calling a function that does both instead jared@aauser.com
 
Cool-- i appreciate your help--but--Im not a programmer--i dont know js--i just copy and paste when needed--
I dont know how to do what you said--: (
 
What jaredn is saying, and I agree, is that the javascript close() is executing before the HTML link is activated. So, instead of using HTML and javascript, use only javascript and open the new window and close the current window in the same function.

When you click the link in the pop-up, you should have it go to a function which does
Code:
window.open(theURL,winName,features);
self.close()
in that order.
Sincerely,

Tom Anderson
CEO, Order amid Chaos, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top