View Full Version : A tricky question about pop-up windows.


pulchritude
01-13-2003, 04:23 PM
Here's what I want to happen.

You click on a link, and that link opens in a new browser.

<a href="http://whatever.com" target="_blank">click here!</a>

Then, I want that new window to
a) launch a popup window immediately after it loads and
b) I want that window itself to close.

So, in effect, it would basically be like using a pop up link on the first page, but I have to get around the fact that I can't use javascript on the first page (don't ask why, I just can't. ^_^)

If anyone could help? Its the part about the new window itself closing after the pop up window opens.

Does this make sense? Any help would be super appriciated!

- Danielle

Ökii
01-14-2003, 11:01 AM
<body onload="win = window.open('poppage.htm','win','widht=300,height= 200'); window.close();">

should do.

pulchritude
01-14-2003, 01:50 PM
Thanks, that almost works. Is there anyway to override the popup message that I get in MSIE?

"This window is trying to close. Do you want this window to close?"

Can that go away?

Thx!

TheFunnySource
01-11-2005, 03:40 PM
Thnx that helped me to :)