Website Scripts And Cloud Tutorials

Last updated on February 14th, 2022 at 09:54 am

Click to rate this tutorial!
[Total: 13 Average: 4.7]

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>

<a href="javascript:bookmark();">Add Me</a>

window.sidebar.addPanel function has bee removed from the latest Firefox. Due to abuse of bookmarks all browsers have dropped this functionality and it may no longer work in any new browsers. Just leaving this script as is for reference.

Click to rate this tutorial!
[Total: 13 Average: 4.7]
11 thoughts on “Add to favorites or bookmarking using javascript in firefox and internet explore [IE]”

Leave a Reply

Your email address will not be published.