popup

liunx

Guest
I have created a popup for my website that appears with the onLoad() tag in the <body> - how do I get rid of it when I close the page that called it, <br />
<br />
I tried to use onUnLoad().? But it still remains on the task bar and will not reappear when you revisit the page as it is hidden by the new/subsequent pages.<br />
<br />
If I do have to use onUnLoad() - how/where please..?..<!--content--><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"<br />
"http://www.w3.org/TR/html4/strict.dtd"><br />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><br />
<meta name="Content-Script-Type" content="text/javascript"><br />
<title>Example</title><br />
<script type="text/javascript"><br />
<!--<br />
onload = function () {self.child = self.open ('http://www.w3.org', '', 'height=400,width=300')}<br />
<br />
onunload = function () {if (!self.child.closed) self.child.close()}<br />
// --><br />
</script><!--content-->
 
Back
Top