Bookmark Text Link for all browsers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jenny S.
    Confirmed User
    • Apr 2006
    • 582

    #1

    Bookmark Text Link for all browsers

    I have tried several "Bookmark this Page" (= control+D) codes but it seems that they only work for certain browsers, mostly Explorer. Is there a uniform code for a bookmark text link that works with at least Explorer, Netscape, Firefox, and Safari?
    Jenny Seemore
    Pornography is the bloody gladiator who stands guard over the First Amendment
  • duckduckgoose
    Registered User
    • Mar 2006
    • 82

    #2
    The following javascript should work in IE, Firefox (and probably Netscape). I don't have Safari here to test it, nor Opera.

    <script>
    function addMyBookmark(title,url) {
    if (window.sidebar) {
    window.sidebar.addPanel(title, url,"");
    } else if( document.all ) {
    window.external.AddFavorite( url, title);
    } else if( window.opera && window.print ) {
    return true;
    }
    }
    </script>

    and you call it from a link such as :

    <a onClick="addMyBookmark(document.title, location.href);">link</a>
    rRhino.com ...social networking for book fans...

    Comment

    • Jenny S.
      Confirmed User
      • Apr 2006
      • 582

      #3
      Thank you so much, I am going to try it out.
      Jenny Seemore
      Pornography is the bloody gladiator who stands guard over the First Amendment

      Comment

      • VicD
        ICQ: 304-611-162
        • Feb 2005
        • 13245

        #4
        thanks, i can use it

        Comment

        • HouseHead
          Confirmed User
          • Aug 2003
          • 5539

          #5
          Hmmm Im going to give this a try..
          The Sexiest place to Buy & Sell Adult Ads - JuicyAds is where YOUR profits matter!

          ---> SPOTS AVAILABLE
          :|: SIGN UP RIGHT NOW <---

          Comment

          • Jon Clark - BANNED FOR LIFE
            North Coast Pimp
            • Dec 2005
            • 9395

            #6
            Hey, I needed this too, Thanks!

            Comment

            • duckduckgoose
              Registered User
              • Mar 2006
              • 82

              #7
              i'm sure it's not perfect, but it supports the majority of the browsers my traffic contains. it was a combination of a few solutions found elsewhere. maybe if someone has something better, they can post it later; but for now, this works well for me in the IE and Mozilla based browsers (and some others)
              rRhino.com ...social networking for book fans...

              Comment

              Working...