SQL PHP HTML ASP JavaScript articles and free scripts to download
JavaScript Tutorials
Popular Tutorials
Drop down list
Timer function
JavaScript Tutorials
String
Array
Date & Time
Form Validation
Event Handling
Math Functions
JavaScript Forum
Subscribe
Submit your email address and receive article and product notifications. Your email is safe with us.

 
 

Javascript Add to favorite or book mark the link or url of the page

We store URL of sites by using my favorite or book mark feature. The URL of the site will be added to our favorite or bookmark links. We will use JavaScript function to do this. On clicking the link browser will open the window for conformation and adding the link to the list. Here is the function and below that the link to add the this site to your favorite list.










<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function bookmark()
{
bookmarkurl="http://www.plus2net.com"
bookmarktitle="Plus2net.com: PHP SQL and Javascript Source"
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
else if (window.sidebar) // firefox
window.sidebar.addPanel(bookmarktitle, bookmarkurl, "");
}
// End -->
</script>


The above function should go the head section of the page and the link can be placed inside the body section of the page. Here is the code to place the link asking the visitors to click the link and add to their favorite.

<div align="center"> <a href="javascript:bookmark()">Bookmark This Page</a> </div>

 
Subscribe
Submit your email address and receive article and product notifications. Your email is safe with us.

Scripts
PHP
JavaScript