Search Tools Links Login

Add to Favorites - Dynamically!


After searching throughout the web for a JavaScript function that would add a web page to a users favorites folder, I grew increasingly impatient with the laziness of others code, (hey why re-create the wheel?) because others code only lets you add one page to a users favorites folder. Therefore, I created a DYNAMIC “Add to Favorites” function, that for example will add the web page where the code is located to the users favorites. Just create an include virtual, (for script) and insert the include onto all of your pages, or preferably if you have a header page include, just copy the code into that – and Voila! As long as you have the TITLE tags on your page, you’re set!

Original Author: Matt Khoury

Inputs

None, the code is very generic, so just copy the code as is.

Assumptions

You MUST have TITLE tags on your web pages! Also, make sure the TITLE tags are ABOVE your start JavaScript tag.

Returns

None, the code is very generic, so just copy the code as is.

Side Affects

None.

Code



ADD To Favs



Add page To favorites


About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 76 times

Categories

ASP/ HTML

Attachments

No attachments for this post


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.