Add Page as a bookmark
Posted by Viral Sarvaiya on December 28, 2009
just copy and paste the below code for bookmark your page.
<head> <script> function bookmark(url,title){ if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) { window.external.AddFavorite(url,title); } else if (navigator.appName == "Netscape") { window.sidebar.addPanel(title,url,""); } else { alert("Press CTRL-D (Netscape) or CTRL-T (Opera) to bookmark"); } } </script> </head> <body> <input type="button" value="Bookmark us!" onclick="bookmark('https://viralsarvaiya.wordpress.com/','JavaScript For Bookmark')"> </body>
Advertisements
Leave a Reply