Put your tips and tricks online - Share your knowledge! Login | Register
 
 
  Search     Advanced search
 

Home | Ask Question | Add tip | My tips | Recent tips & tricks | Suggest a category | FAQ | Forums

 
 
 
 Category : Home > Programming > JavaScript     

Javascript bookmark


Add Javascript code to your page that allows the visitors to bookmark it. Just replace
example_url with the actual URL of your page and example_title with the page title.



if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion)
>= 4)) {

var url="example_url";
var title="example_title";

document.write('<A HREF="javascript:window.ext');
document.write('ernal.AddFavorite(url,title);" ');
document.write('onMouseOver=" window.status=');
document.write("'Add this page to your favorites'; return true ");
document.write('"onMouseOut=" window.status=');
document.write("' '; return true ");
document.write('">Bookmark this page</a>');
}
else {
var msg = "Bookmark this page";
if(navigator.appName == "Netscape") msg += "  (CTRL-D)";
document.write(msg);
}



  Options
 
   del.icio.us  |  newsvine  |  digg  |  furl  |  google  |  yahoo  |  Ma.gnolia  |  vigillar  |  reddit  |  technorati  |  icerocket  |  pubsub

       Rate this tip:    

Start discussion or add comment to this tip

  Details
Tip reference : #122
views : 443
Added on : 10/20/06
Submited by : webdev
 
Send a message Send a message Printer friendly output Printer friendly output
Display this member's tips Display this member's tips (6)
 
 
Next >>
 Most viewed tips 
  Databases > Oracle > Security : How to unlock Oracle user account  
  Operating Systems > Unix : How to kill Unix user session  
  Databases > Oracle > Performance Tuning : How to enable trace in Oracle  
  Databases > Oracle : Kill user session  
   
  All categories
Databases | Programming | Hardware | Operating Systems | Networking | Internet | ERP / CRM | Games & Multimedia | Graphics & Design | Miscellaneous | Office Software | TipLib FAQ
 
 

Home |  FAQ |  Terms of Use |  Privacy Policy

© 2005 tiplib.com