Работает только в ИЕ и ФФ. В остальных не знаю как.
<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>