Add To Bookmark In Javascript

30 views
  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!



« How To Disable Form Tag or Element In javascript what is the other method we can use, when we are not using form name ( getElementById() ) in Javascript? »
Posted on Tuesday, April 7th, 2009 at 6:35 pm under Javascript | RSS 2.0 Feed

Post Comment

You must be logged in to post a comment.



ComputerEducationWorld.com All Rights Reserved © RSS | CBSE | Education Boards Of India | What is My IP?