View Full Version : Html code to close a pop-up and reopen it
Togging
30-12-2006, 02:58 PM
How do you close someones popup when they go to your website then open up another popup instead of it?
Togging
30-12-2006, 03:32 PM
Anyone
Togging
30-12-2006, 03:45 PM
Ok..
Do you know how to do it? :s
it'd be a waste of time me telling you because you wouldn't understand it:
http://www.quirksmode.org/js/popup.html
enjoy.
Togging
30-12-2006, 05:52 PM
I've found out how to open a pop-up.
But how do you make a pop-up when someone enters your website, to close?
read the whole article :]
Togging
30-12-2006, 09:43 PM
Umm..I've read the article and I'm confused.
Does it tell how, when someone comes to your website, one of their own windows closes?
If it does.. I cant find it. :s
Where abouts does it say that?
CJ-real
31-12-2006, 11:53 AM
Place this on your page you want to popup
<iframe name="YOURNAMEHERE" src="/directory/page.extension" width="00px" height="00px" frameborder="0">
Now place this on the src file of the iframe (you add what you want in the popup on this page too, and then the close code below where you want the link for it to close):
<a href="javascript:self.close()">YOUR TEXT HERE WHICH WILL CLOSE THE WINDOW</a>
Now you place this on the main page where you want the popup:
<a href="window.frames.YOURNAMEHERELIKEABOVE.location.href="/source/of/your/iframe;">YOUR LINK TEXT HERE WHICH WILL MAKE IT POPUP</a>
Meh hope that helps... I also have the button to close the window and the picture
Ye as said sounds like your trying to hack habbo kiddies but meh
You have to use the same popup name as what the popup name is for example say the window id was popin you'd have to make your popup code using that name
CJ-real
31-12-2006, 03:03 PM
HAHA theres a good code for this.
Someone was flooding a website the other day (a scamsite) which did exactly that :) - maybe you're trying to copy them
EDIT: This person and the ohter person that said about this are trying to do exactly the above :rolleyes:
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.