homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

Add to favourites alert possible?
What sort of code?

10+ Year Member

Msg#: 10756 posted 9:02 am on Aug 4, 2005 (gmt 0)

Not sure if this is an html thing...

Would like to warn visitors not to save a page in favourites because its url might change.

Anyone know how to do this please?
ie. pop up alert if they try to add.



WebmasterWorld Senior Member 10+ Year Member

Msg#: 10756 posted 10:55 am on Aug 4, 2005 (gmt 0)

Not that I know of, but when you move the page setting a 301 code [w3.org] (or some other 3xx code) on the old URL would be the best bet.


WebmasterWorld Senior Member tedster us a WebmasterWorld Top Contributor of All Time 10+ Year Member

Msg#: 10756 posted 5:58 pm on Aug 4, 2005 (gmt 0)

Robin is right -- there is no way to detect when a user bookmarks a page. If there were, we would easily be able to keep statistics on how many favorites were set -- but that just can't be done, unfortunately. It wold be useful information.

John Carpenter

5+ Year Member

Msg#: 10756 posted 6:10 pm on Aug 4, 2005 (gmt 0)

There actually is a way to detect that a visitor bookmarked your site. However, there are two limitations:

1) You can detect it only the next time the visitor returns to your site.
2) It works only for the IE browsers.

The trick is simple. If a visitor request the favicon.ico file, he or she has bookmarked your site. Firefox requests this file everytime, while IE only if the URL is in the favorites.


10+ Year Member

Msg#: 10756 posted 8:22 pm on Aug 4, 2005 (gmt 0)

Thanks for the comments. Think I'm going to have to do a bit of coding in the pages.

Basically I'm trying to make sure visitors only bookmark the latest date dynamic page of some adverts where the url after the? determines the dates shown. Some of them are saving page 2,3 etc. by accident and then wondering why the adverts are a week out of date when they return.

The basic url is the same, with the stuff after the? changing to modify the dates.

So I was going to put a warning up if they try to bookmark page 2 onwards.

May have to code pages so that if they haven't arrived from our url, the page defaults to page 1.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved