Add to favorites or bookmarking using javascript in firefox and internet explore [IE]
Hi guys, here is a simple script which shows how to add a webpage to the favorites or bookmarking option of your browser both IE [Internet Explorer] and Firefox [FF].Very easy to install, just copy and paste on the page you want this option to be added.Enjoy!!!
<title>Bookmark Page</title>
<script language=”JavaScript1.2″ type=”text/javascript”>
function bookmark() {
title = “Mistonline.in, The world of tutorials, scripts and technology”;
url = “http://www.mistonline.in/”;
if (window.sidebar) {
// Mozilla
alert(”You are using FireFox!”);
window.sidebar.addPanel(title, url,”");
alert(”Script from mistonline.in”);
} else if( window.external ) {
// IE Favorite
alert(”You are using IE”);
window.external.AddFavorite( url, title);
alert(”Script from mistonline.in”);}
else if(window.opera && window.print) {
// Opera
return true;
alert(”Script from mistonline.in”);}
}
</script>
</head>
<body bgcolor=”#ffffff”>
<a href=”javascript:bookmark();”>Add Me</a>
</body>
</html>
Related posts:
- Simple Add to favorites script
- Using no-cache for Stop Caching in Firefox and Internet Explorer
- Disabling right click menu using javascript Enhanced Version
- How to close a child window from a parent window using javascript
- Get IP address using javascript And SSI
- Close Event In Javascript For Firefox, IE and Chrome
- Context Right Click Menu Using Javascript

Very nice site!
Very nice site!
Very nice site!
Very nice site!
Very nice site!
hmm good…
vliwrxoh…
vliwrxoh…
Interesting site, nice design, i have bookmarked it for the future referrence
cool…..
Thanks for the review!