Best view in Firefox and Chrome

Create the Bookmark through JavaScript

Sunday, June 14, 2009
Convert Article to PDFPrint ArticleEmail Article to FrinedBookmark this Article

Sometimes we wish to create a bookmark of any important WEB site while we are browsing. Almost all the browsers have the bookmarking facilities by a single keyboard shortcuts to enable the users to bookmark their favorite pages. Following keyboad shortcuts which are associated with the following browsers. Firefox (Ctrl+D), IE (Ctrl+D) and Opera (Ctrl+T). But sometimes every visitor is a power user, so for them, we can give some facility to add a quick "Bookmark this page" link in all our pages. When the users click on the link prompts the user with a dialog box to add the specified URL to the Favorites list. I'll give the JavaScript codes for that. This codes will able to run almost all the browsers.

<script language="JavaScript1.3" type="text/javascript"> // title = "What is the title that you wish to give to this bookmark"; // Blogger - Replace with <$$> // url = "Which url that you wish to make bookmark"; // Blogger - Replace with <$$> function AddBookmarkLink(title, url ) {
if (window.sidebar) { // This is for Mozilla Firefox Bookmark window.sidebar.addPanel(title, url,""); } else if( window.external ) { // This is for IE Favorite window.external.AddFavorite( url, title); } else if(window.opera && window.print) { // This is for Opera Hotlist return true; } }
Eg : How to make call this function.. <a href = "javascript:AddBookmarkLink('Breeze', '' )"); >Bookmark this Page</a> enjoy.. :)

Read these Articles :


Anonymous said... is very pleasant to read. The article is very professionally written. I enjoyed reading keep it that way.

Why Breeze

This is a new technological rhythm in the web. It blooms like a Breeze in your technological face with more than 75 technoligical atricles and guidences.

Contact Me
Contact Me Send an Email Facebook Account LinkedIn profile Twitter/Shayanth
Share And Save
Social Share with Twitter Facebook Share Add to Google Save on Delicious
Get Updates

The RSS will facilitate you to get the updates from Breeze. Click Here to redirect to the RSS link.

Designed by Posicionamiento Web | Bloggerized by GosuBlogger | Blue Business Blogger | Customized by SHAUOM