»
EnglishFrenchVietnamese

Print - Set Homepage and Favorite - JavaScriptBank.com

Full version: jsB@nk » Snippet » Set Homepage and Favorite
URL: https://www.javascriptbank.com/set-homepage-and-favorite.html

Set Homepage and Favorite © JavaScriptBank.comUse this JavaScript to let visitors can set their home page to your site or add your site into their favorite category. This JavaScript use a simple functions that you can place anywhere in your web pages.

Full version: jsB@nk » Snippet » Set Homepage and Favorite
URL: https://www.javascriptbank.com/set-homepage-and-favorite.html



JavaScript
<SCRIPT>// Set Homepage and Favorite by Thái Cao Phong// Copyright by JavaScriptBank.com// 15/11/2005<!--//function setHome(o) { o.style.behavior='url(#default#homepage)'; o.setHomePage('http://JavaScriptBank.com/') }function addFav() { window.external.addFavorite('http://JavaScriptBank.com/', 'J a v a S c r i p t B a n k . c o m') }//--></SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<table border=1 bgcolor=whitesmoke bordercolorlight="#C0C0C0" bordercolordark="#C0C0C0" style="border-collapse: collapse" width="215"><tr><td align=center><a href="#" onclick="setHome(this)" title="Set your home page is JavaScriptBank.com">set Homepage</a><br><a href="#" onclick="addFav(this)" title="Add JavaScriptBank.com to favorites">Add to Favorites</a></tr></td></table><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->