/    Sign up×
Community /Pin to ProfileBookmark

How to set default home page automatically?

Can any one give me a java script to set default home page automatically(without prompt) when a page load.

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@mintedjoDec 01.2008 — I can't help you...

But in my opinion if this isn't illegal then it should be. And I wouldn't visit your website again if you did it to me.

Is there a good reason for wanting to do this? Or are you just trying to p*** people off?
Copy linkTweet thisAlerts:
@MaydayDec 01.2008 — If you mean, when someone visits the page it automatically becomes their homepage, whether they want it to be or not:

Not only would doing so just aggravate your visitors, as the above poster commented, but most modern virus protectors and even browsers block such an event from happening, and give a warning message that this was attempted.

I you think some visitors might have a valid reason for making your site their homepage, give them a link that allows them to do so, but do NOT try to force it upon them.
Copy linkTweet thisAlerts:
@felgallDec 01.2008 — All browsers except Internet Explorer will ignore any attempt to change the browser home page from anywhere other than the browser preferences.

For Internet Explorer you should apply a registry update to lock that option yourself before some malicious web page updates your browser home page and then locks the registry to stop you changing it back.
×

Success!

Help @yeneesha spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...