PDA

View Full Version : self.close pop ups


dysfunctionGazz
09-18-2002, 04:13 PM
ive just put a little pop up ad on my bands website, i want to have it so that when u once u have clicked on the link inside it, it opens the desired file into the 'content' frame. That I have acheived, but i want to use the self.close function so that the banner is gone once you've followed the link.
can someone please advice how to do? I'm new to Javascript.

http://www.angelfire.com/id/devilman/index.html

Thanks

Gazz Marlow

A1ien51
09-18-2002, 04:59 PM
simpliest soultion, this code goes on the pop up window. Make sure to chnage your frame and the page to be opened.

<a href="javascript:Wind();">The Link</a>

<script>
function Wind(){
opener.parent.FrameName.location.href="BLAH";
self.close();
}
</script>

dysfunctionGazz
09-18-2002, 05:14 PM
thank you very much, that works nicely!!!:)