www.webdeveloper.com
Results 1 to 2 of 2

Thread: popup

  1. #1
    Join Date
    Jul 2003
    Posts
    138

    popup

    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..?..
    Last edited by glenvern; 07-12-2003 at 12:39 PM.

  2. #2
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,270
    <!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>
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles