DIGIT-ARC read-only archive · snapshot: July 23, 2026

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

2 posts · originally from https://geek.digit.in/community/threads/help-make-homepage-code-that-works-in-ie-as-well-as-firefox.5804/

tuXian
tuXian Original post #1
Feb 17, 2005 at 9:17 AM
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
Feb 18, 2005 at 2:59 PM
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)