• Nike free run 2 pink
  • Nike free 5.0 kids
  • Oakley sunglasses discount
  • CodeAve.com CodeAve.com - JavaScript - Misc
    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

  • Save as Favorite/Homepage (IE)
  • Air jordan 11 low
  • New Balance 996
  • Ray ban vintage sunglasses
  • Save the people who use your site a few mouse clicks and encourage people to come back to your site. You can easily give Internet Explorer (4.0 or better) users the opportunity to make any page on your site a favorite or the default page that opens each time a new browser session is started. The following examples will demonstrate how to add a link that will enable IE users to add the current page as a favorite or a homepage. Netscape 6.0 or earlier do not support this feature, so we offer a couple of ways to either display the link only within IE or to prompt a non IE user that the function is not available to them.
    View the Output
    Text View
    Print View
    Mail this Link
    Download the Code

    <html>
    <title>CodeAve.com(Add A Favorite/Homepage)</title>
    <body bgcolor="#FFFFFF">
    <p align="center">Favorites</p>


    <!-- Favorite Example #1 -->
    Link that will appear in all browsers,<br>
    but will only allow IE to save as a favorite<br>
    <script language="JavaScript">
    <!--
    function Add_A_Favorite() 

    if (window.external) 
    // if the browser is IE open the add favorite window
    {
    external.AddFavorite(location.href, document.title)
    // Add the document location and title to the AddFavorite window
    }
    else 
    // Display and alert box for any other browser.
    {
    alert("Sorry, your browser doesn't support this feature." + 
    "\nPlease use the bookmark feature of your browser to save the location of this page.");
    }

    }
    // -->
    </script>


    <!-- Link set to the javascript function Add_A_Favorite() -->
    Click <a href="javascript:Add_A_Favorite()">here</a> to add this page as a favorite




    <p>
    <!-- Favorite Example #2 -->
    Link with function that will only appear in IE
    <br>

    <script language="JavaScript">
    <!--
    // This will check the browser and display a link to add the
    // page as a favorite providing that the browser is IE
    function Add_A_Favorite_Link() 

    external.AddFavorite(location.href, document.title)
    // Add the document location and title to the AddFavorite window
    }
    if (window.external) 
    {
    document.write("Click <a href='javascript:Add_A_Favorite_Link()'>here</a> to add this page as a favorite.");
    }
    // -->
    </script>




    <p>
    <!-- Favorite Example #3 -->
    Link without function that will only appear in IE<br>
    <script language="JavaScript">
    <!--
    if (window.external) 
    document.write("Click <a href=\"#\" onClick=\"external.AddFavorite(location.href, document.title);\">Another</a> to add this page as a favorite. ");
    // -->
    </script>


    <p>
    <hr>
    <p align="center">Homepage</p>


    <p>
    <!-- Homepage Example #1 -->
    Link that will appear in all browsers,<br>
    but will only allow IE to save as a favorite<br>
    Click <A href="#" onClick="this.style.behavior='url(#default#homepage)'; this.setHomePage(location.href);">here</a> to make
    this your homepage 



    <p>
    <!-- Homepage Example #2 -->
    Link without function that will only appear in IE<br>
    <script language="JavaScript">
    <!--
    if (window.external) 
    document.write("Click <A href=\"#\" onClick=\"this.style.behavior='url(#default#homepage)'; this.setHomePage(location.href);\">here</a> to make this your homepage. ");
    // -->
    </script>



    </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