Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
VAOZ

Сделать стартовой

Recommended Posts

Сам долго искал и вот нашел
 

<a href="#" onclick="this.style.behavior='url(#default#homepage)'; this.setHomePage('http://forum.vaoz.ru/'); return false">Сделать стартовой страницей</a>


И вот к мозилле 

<script type="text/javascript">  
function setStartPage(obj)  
{  

if (document.all)  
{  
obj.style.behavior='url(#default#homepage)';  
obj.setHomePage('https://vaoz.ru/');  

}  
else  
if(!document.layers)  
{  
netscape.security.PrivilegeManager.enablePrivilege("UniversalPreferencesWrite");  
navigator.preference("browser.startup.homepage", "https://vaoz.ru/");  
}  
else return false;  

return true;  
}  
</script>


код для вставки

<a href="#" onClick="setStartPage();">Сделать стартовой</a> 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×