Dreevoo.com | Online Learning and Knowledge Sharing
 
Home | Programs | Adobe Dreamweaver | Settings | How to add bookmark link in Dreamweaver
Guest
Click to view your profile
Topics
Programs
Languages
Recipes
Home
Shortcuts
 
 

How to add bookmark link in Dreamweaver

In this lesson you will learn how to add script that allows site visitors to easily add page to favorites.

 
  Author: Brodjan | Version: CS5 | 25th December 2013 |  
 
 
1.
 

Create new HTML document.

 
 
2.
 

Click Code to open page in HTML view.

 
 
3.
 

Move between <title> and </head> and make some space.

 
 
4.
 

Now insert this code:

<script language="JavaScript1.2" type="text/javascript">
function CreateBookmarkLink() {
title = "dreevoo.com - online learning";
url = "http://www.dreevoo.com/";
if (window.sidebar) {
// Mozilla Firefox Bookmark
alert("Press CTRL + D to add dreevoo.com to Favorites");
} else if( window.external ) {
// IE Favorite
window.external.AddFavorite( url, title);
}
else if(window.opera && window.print) {
// Opera Hotlist
return true; }
}

</script>


You can also change the name and web address of your web page.

 
 
5.
 

Click Design to go to Design view.

 
 
6.
 

Now write any text and select it.

 
 
7.
 

At Link field below insert javascript:CreateBookmarkLink();.

 
 
8.
 

Now click the link. You will get notification to press CTRL+D to add page to Favorites.

Also recommended:


 
 
 
   
  Please login to post a comment
   
 
 
online learning made for people
Dreevoo.com | CONTRIBUTE | FORUM | INFO