»
EnglishFrenchVietnamese

Print - Add to Favorites - JavaScriptBank.com

Full version: jsB@nk » Browser » Add to Favorites
URL: http://www.javascriptbank.com/add-to-favorites.html

Add to Favorites © JavaScriptBank.comThis small script will launch the browser Favorites window to bookmark the current page. Works in Firefox and Internet Explorer.

Full version: jsB@nk » Browser » Add to Favorites
URL: http://www.javascriptbank.com/add-to-favorites.html



JavaScript
<script language="javascript"><!--// Created by: MB Web Design :: http://www.mbwebdesign.co.ukfunction bookmark(address,sitename) {  if (window.sidebar) {    window.sidebar.addPanel(sitename, address,"");  } else if( document.all ) {    window.external.AddFavorite(address, sitename);  } else if( window.opera && window.print ) {    return true;  }}//--></script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<a href="#" onclick="bookmark('http://javascriptbank.com/','J a v a S c r i p t B a n k . c o m')">Bookmark JavaScriptBank.com!</a><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->