Help: Make Homepage Code That Works In IE As Well As Firefox

Status
Not open for further replies.

tuXian

In the zone
I have this piece of js code for setting a page as Home page. Its working fine with IE

Make domain.com Your Homepage

But from past three months my sites firefox user base has reached 30% of hits which I can no longer ignore.

So can anyone plz let me know or share the code that is compatible with both IE and FireFox

Thanks
 

enoonmai

Cyborg Agent
Unfortunately, as far as I know, you're out of luck there. No Gecko-based browser, including Netscape, Mozilla or Firefox, support the JS script for setting the home or even the this.setHomePage() function. Its how the browsers are coded, to prevent security risks and to prevent a website from changing your homepage. The best you can do is to put a if document.all() { code to use IE's auto-link feature, and to put a else if clause and put a document.write() function to tell the user that this feature is not supported on their browser and to drag the link to the Home button on their browser (which is how the Gecko browsers set their homepage)
 
Status
Not open for further replies.
Top Bottom