<a href="http://www.site.ru" title="Название сайта" onClick="try { window.external.AddFavorite(this.href, this.title); return false;} catch(e) {}" rel="sidebar">Добавить в избранное</a>
<html> <body> <div id="HP" style="width:150px;height:25px;line-height:25px;text-align:center;background:red;cursor:pointer;">Set Home Page</div> <script type="text/javascript"> (function(HomePage){ var HP = document.getElementById("HP"); HP.onclick = document.all&&!window.opera ? function(){ this.style.behavior = 'url(#default#homepage)'; this.setHomePage(HomePage) } : function(){ if (window.netscape&&window.netscape.security){ netscape.security.PrivilegeManager.enablePrivilege('UniversalPreferencesRead'); if (navigator.preference('browser.startup.homepage')!=HomePage) { netscape.security.PrivilegeManager.enablePrivilege('UniversalPreferencesWrite'); navigator.preference('browser.startup.homepage',HomePage); } } } })('http://www.domain.com/'); </script> </body> </html>