View Full Version : trick poppers


Melancholy
03-21-2003, 01:33 AM
Pop ups are so tricky!

I've seen before where people will have a link that says "Close the popup". And I wanted one of those. The only tutorials I can find on it are where there are buttons that say that. But I'd rather have just plain text as a link. I found another tutorial on how to do that, but it's really confusing, and it didn't work. Does anybody know what i'm talking about/ know how to do that? Thank you!

Alcy
03-21-2003, 01:40 AM
<a href="javascript:window.close();">Close the popup</a>

Cagez
03-21-2003, 01:43 AM
Note, you can only close windows with javascript if the windows was made with javascript -- if you just put it on any old window, then it'll ask the user.

Melancholy
03-21-2003, 01:43 AM
THanks!

I could've sworn I did that, but I guess I was missing something.