Results 1 to 4 of 4

Thread: add link to favorites

  1. #1
    Join Date
    Nov 2008
    Posts
    1,066

    add link to favorites

    I am setting up a website and would like to add a link that allows the visitor to click to directly add my site to their favorites.

    I did the test with this code (<a href="javascript:window.external.addfavorite('http://....','....')"> My site in your Favorites </a>), but when clicked nothing happens.

    If someone with a tip.

  2. #2
    Join Date
    May 2008
    Posts
    271

    Re: add link to favorites

    In any case, it seems to be a Microsoft specific (one more), which only works with Internet Explorer

  3. #3
    Join Date
    May 2008
    Posts
    945

    Re: add link to favorites

    "Window.external.addfavorite" does not work with IE7! It is sad indeed!

  4. #4
    Join Date
    Feb 2008
    Posts
    194

    Re: add link to favorites

    <html>
    <head>
    <- START OF SCRIPT FAVORITES ->
    <script type="text/javascript">
    function favorites (title, url) {
    if (window.sidebar) {window.sidebar.addPanel (title, url, "");} // Firefox
    else if (window.opera && window.print)
    {// Opera
    var item = document.createElement ('a');
    item.setAttribute ('href', url);
    item.setAttribute ('title', title);
    item.setAttribute ('rel', 'sidebar');
    item.click ();
    }
    else if (window.external) // ie other than IE7
    {
    window.external.AddFavorite (url, title);
    }
    }
    </script>
    <- END OF SCRIPT FAVORITES ->
    </head>
    <body>
    <a href="javascript:favorites('put here the name of the site','put here the URL of the site')">
    <img src="favorites.gif" width="20" height="17" ALIGN="middle" title="Add [site name] To Favorites" border="0">
    </a>
    </body>
    </html>

Similar Threads

  1. Internet Explorer 8: Favorites save the same link two times
    By Dechen in forum Technology & Internet
    Replies: 4
    Last Post: 19-02-2011, 01:56 PM
  2. Connecting TP-Link modem to TP-Link router
    By Rufta in forum Technology & Internet
    Replies: 3
    Last Post: 02-02-2011, 01:50 PM
  3. Changing link color when moving mouse over link in HTML
    By Cade in forum Software Development
    Replies: 5
    Last Post: 22-01-2010, 07:46 PM
  4. Replies: 2
    Last Post: 18-05-2009, 07:15 AM
  5. D-Link DIR-655, Intel WiFi Link 4965a/g/n, Vista and 802.11n
    By CaspaR in forum Windows Vista Network
    Replies: 1
    Last Post: 14-07-2007, 04:03 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,717,392,935.33266 seconds with 16 queries