• Nike free run 2 pink
  • Nike free 5.0 kids
  • Oakley sunglasses discount
  • CodeAve.com CodeAve.com - JavaScript - Navigation
    ·Document Info
    ·Script Writers
    ·What's New?
    Mail List


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

  • Alert Links
  • Air jordan 11 low
  • New Balance 996
  • Ray ban vintage sunglasses
  • When you're directing a user to another site or another part of your site and you want to be certain that they understand they're leaving your site or going to a specific different part of yours. The JavaScript alert in conjunction with a plain hyperlink (with a simple addition) may suit your needs.  In the example below there are two hyperlinks (one set to open in a new window), both hyperlinks have additional code (onClick="LinkAlert()"),so when they're clicked to run the script named LinkAlert which will force an alert box informing the user of their new destination (in this case Yahoo!) and once they've clicked OK the browser will continue on to the new location.
    View the Output
    Text View
    Print View
    Mail this Link
    Download the Code

    <title>CodeAve.com(JavaScript: Alert Links)</title>
    <body bgcolor="#FFFFFF">
    <script language="JavaScript">
    // Function that is called by the onclick command within the anchor tag
    function LinkAlert ()
    //The alert windon and the text that will appear is quoted \n makes a new line
    alert ("You are about to leave this site\nand travel to Yahoo!");
    // -->
    <a href="http://yahoo.com" onClick="LinkAlert()">Hyperlink within the same window</a>
    <a target="_blank" href="http://yahoo.com" onClick="LinkAlert()">Hyperlink to new window</a>




    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 - 2018 CodeAve.com
    All Rights Reserved

    jordan 11 gamma Nike KD VI lebron 11 low