• Nike free run 2 pink
  • Nike free 5.0 kids
  • Oakley sunglasses discount
  • CodeAve.com CodeAve.com - JavaScript - Navigation
    ASP
    JavaScript
    ·Document Info
    ·Forms
    ·Images
    ·Miscellaneous
    ·Navigation
    ·Script Writers
    ·Contents
    ·What's New?
    CSS
    HTML
    Maps
    Links
    Mail List
    Search
    Sitemap


     

  • Retro 3 jordans
  • Jordan 13 retro
  • Nike free 5.0

  • New Window OnUnload
  • Air jordan 11 low
  • New Balance 996
  • Ray ban vintage sunglasses
  • When people leave your site, you may want to display a message thanking them for stopping at your site, reminding them of new features or opening a new window to a sponsor. Used sparingly (and please use it sparingly as many new windows can be quite annoying) this can be an affective way to bring more clicks to your site. A new window will appear when either the browser is closed or when a link to an external site is clicked.
    View the Output
    Text View
    Print View
    Mail this Link
    Download the Code

    <html>
    <title>CodeAve.com(JavaScript New Window OnUnload)</title>
    <head>
    <script language="JavaScript">
    <!-- 
    ok=1
    function open_on_departure(url,name)

    if (ok) 
    new_window = window.open('http://www.yahoo.com','yahoo', ' menubar,resizable,dependent,status, width=300,height=200,left=500,top=10')
    }
    // -->
    </script>
    </head>


    <body onUnload="open_on_departure()" bgcolor="#FFFFFF">
    Your new window will open when this window is closed or the appropriate link below is clicked <br> 
    <a href="http://www.yahoo.com" onclick="ok=0">Link <i>Without</i> New Window Opening</a>
    <p>
    <a href="http://www.yahoo.com">Link With New Window Opening</a> 
    </body>
    </html>

     

     

     



    ASP: What's New? | Articles | Script Writers | Database Display | Read/Write
    Server Variables | Response Objects | Random Events | Miscellaneous
    HTML: Forms | Hyperlinks | Headers | Tables | Hyperlinks | Headers | Text Display
    JavaScript: Document Info | Forms | Images | Navigation | Script Writers
    CSS: Basics | Page Display | Text Display | Script Writers | Miscellaneous
  • 2014 michael kors
  • air max women 2013
  • 2014 michael kors
  • air max 2014
  • oakley glasses
  • oakley glasses

  • Maps: Map Script Writers | Bing Maps | Google Maps
  • bottes fr
  • ugg boot
  • Privacy Statement

    CodeAve.com is hosted by MyHosting.com
    Donate Food Online with a Mouse Click at TheHungerSite.com
    Donate Land Online with a Mouse Click at TheRainForestSite.com
    © 1999 - 2017 CodeAve.com
    All Rights Reserved

    jordan 11 gamma Nike KD VI lebron 11 low