54 views

Add To Bookmark In Javascript

  1. <script>
  2. function add_favorite(){
  3. if (window.sidebar){
  4. // Mozilla Firefox Bookmark
  5.                 window.sidebar.addPanel(document.title,‘http://www.computereducationworld.com’,"");
  6.                 }
  7.                 else if( window.external ){
  8.         // IE Favorite
  9.                 window.external.AddFavorite(‘http://www.computereducationworld.com’,document.title);
  10.                 }}
  11. </script>
  12. <a href="javascript:add_favorite()">
  13. Bookmark this site!</a>

Example:


Bookmark this site!

Post a Comment

You must be logged in to post a comment.