Click to See Complete Forum and Search --> : popup


glenvern
07-12-2003, 12:32 PM
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,

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.

If I do have to use onUnLoad() - how/where please..?..

Charles
07-12-2003, 12:41 PM
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Content-Script-Type" content="text/javascript">
<title>Example</title>
<script type="text/javascript">
<!--
onload = function () {self.child = self.open ('http://www.w3.org', '', 'height=400,width=300')}

onunload = function () {if (!self.child.closed) self.child.close()}
// -->
</script>