Unobtrusive Add to Favourites
Tuesday November 10, 2009
JavaScript can add to the page when a feature is supported and not add when it isn't.
Having an "Add to Favourites" link is popular with people just starting out writing web pages. Not all browsers support such a link though and some pople have written scripts that use the wrong way of testing if the browser does support it. This version of the "Add to Favourites" script not only uses the correct method of testing if the browser supports the link, it supplies the necessary code for all the browsers that do provide a way to support such a link, and just leaves an empty tag in the page where the link would have gone if the browser doesn't support it.
Unobtrusive Add to Favourites


No comments yet. Leave a Comment