General Question

Ranimi23's avatar

How to implement a JavaScript code that doing "Set as my Home Page" in Google Chrome?

Asked by Ranimi23 (1917points) November 15th, 2010

I mean, when user click on the link in Chrome it will make that website his default one. I’m looking for code in JavaScript that will work in Google Chrome.

Observing members: 0 Composing members: 0

6 Answers

erichw1504's avatar

So, you’re saying the JavaScript code for doing this works in IE and Firefox, but not Chrome? That’s weird. Let me see if I can find a script for you.

erichw1504's avatar

Okay, found this thread about it:

http://stackoverflow.com/questions/946189/how-can-i-set-default-homepage-in-ff-and-chrome-via-javascript

Basically, it’s a security issue and is no longer in use. IE 7 discontinued it and Firefox and Chrome never have supported it. Someone could maliciously reset visitor’s homepage using this script upon loading the site.

erichw1504's avatar

What I would do is just simply put the directions on how to set your site as their homepage.

Ranimi23's avatar

10x, What about adding the site toFavorites?
Is this also forbidden?

erichw1504's avatar

I don’t think it’s forbidden, but is highly unused in today’s programming. It’s extremely simple quickly add any site to your favorites such as: Ctrl + D.

If I find a way to code it for Chrome, I’ll let you know.

Answer this question

Login

or

Join

to answer.

This question is in the General Section. Responses must be helpful and on-topic.

Your answer will be saved while you login or join.

Have a question? Ask Fluther!

What do you know more about?
or
Knowledge Networking @ Fluther