Create the Bookmark through JavaScript
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 <$data.post.title$> // url = "Which url that you wish to make bookmark"; // Blogger - Replace with <$data.post.url$> function AddBookmarkLink(title, url ) {
This Articles was posted on 10:05 PMSunday, June 14, 2009
|
Labels:
Blogger,
Firefox,
JavaScript
|
1 comments:
shayanth.blogspot.com is very pleasant to read. The article is very professionally written. I enjoyed reading shayanth.blogspot.com. keep it that way.
Post a Comment