Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: I Need a Code

  1. #1
    Join Date
    Dec 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default I Need a Code

    OK, what's the html code that I would use on my site to allow someone to bookmark the page? I want it so I have the words "Bookmark this site now" and when you click on them it bookmarks the page.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,076
    Thanks
    44
    Thanked 3,216 Times in 3,178 Posts
    Blog Entries
    12

    Default

    This cannot be done reliably in all browsers. Here is a way to do it in most:

    http://www.dynamicdrive.com/dynamicindex9/addbook.htm

    But consider this, your users are already 'allowed' to bookmark yours, or any other sites.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jul 2006
    Location
    Antwerp, Belgium (Europe)
    Posts
    807
    Thanks
    87
    Thanked 2 Times in 2 Posts

    Default

    Or just this ?
    Code:
    <a href=":%20Add%20to%20my%20favorites%20folder" onClick="window.external.AddFavorite(&quot;yoursite.com&quot;,&quot;nameofsite&quot;);return false">bookmark this site</a>

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,076
    Thanks
    44
    Thanked 3,216 Times in 3,178 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by chechu View Post
    Or just this ?
    Code:
    <a href=":%20Add%20to%20my%20favorites%20folder" onClick="window.external.AddFavorite(&quot;yoursite.com&quot;,&quot;nameofsite&quot;);return false">bookmark this site</a>
    Which browsers will that work in?
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Jul 2006
    Location
    Antwerp, Belgium (Europe)
    Posts
    807
    Thanks
    87
    Thanked 2 Times in 2 Posts

    Default

    To my knowledge, in all.
    Anyone different experience ?

  6. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,076
    Thanks
    44
    Thanked 3,216 Times in 3,178 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by chechu View Post
    To my knowledge, in all.
    Anyone different experience ?
    Have you ever used any browser other than IE? If so, does this work in any of them?

    Added later:

    BTW - As far as I know, the window.external object only exists in IE.
    Last edited by jscheuer1; 12-13-2006 at 03:38 PM. Reason: add info
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  7. #7
    Join Date
    Jul 2006
    Location
    Antwerp, Belgium (Europe)
    Posts
    807
    Thanks
    87
    Thanked 2 Times in 2 Posts

    Default

    I have no experience with other browsers, but I once asked others to check my site in different browsers, and it all seems fine.
    Therefore: Anyone different experience ? Can anyone try this in other browsers than IE, please ?

  8. #8
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,076
    Thanks
    44
    Thanked 3,216 Times in 3,178 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by chechu View Post
    I have no experience with other browsers, but I once asked others to check my site in different browsers, and it all seems fine.
    Therefore: Anyone different experience ? Can anyone try this in other browsers than IE, please ?
    Doesn't work.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  9. #9
    Join Date
    Jul 2006
    Location
    Antwerp, Belgium (Europe)
    Posts
    807
    Thanks
    87
    Thanked 2 Times in 2 Posts

    Default

    Good to know !
    I adapted my site to the one of DD.

  10. #10
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    I've seen it work in plenty of websites, and it works for FF and IE.
    Check out www.GameWinners.com
    They even have Ctrl+D enabled to activate.
    - Mike

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
  •