2

I have a website and I would want to ask users to make my website as Home Page. If they click Yes, I would like to run a script that should make my website as the home page of the user's browser. Have got a Similar Thread here and a solution here. However, the solution present in my latter link works only in IE. I need a cross browser script for this.

Can anyone help me on this.

Community
  • 1
  • 1
Nitesh
  • 2,286
  • 2
  • 43
  • 65

2 Answers2

5

It is not possible to do this via code in most browsers as a security measure. If it was, any website you visit could automatically make itself your homepage without your agreement.

The fact old versions of IE let you do this is very much the exception rather than the rule.

If you require this behaviour, you would need to write a step by step guide telling people what toolbar to click on, and where to set their homepage in their browser settings.

Rory McCrossan
  • 331,213
  • 40
  • 305
  • 339
  • OK..but how does Google/Bing does the same? – Nitesh May 25 '12 at 08:30
  • You only see the 'make this my homepage' text when using a browser which is capable of the functionality. – Rory McCrossan May 25 '12 at 08:32
  • 2
    In your step by step guide you could show a link to your website and say "Drag this to your browser's home button to make this your homepage" – Timm May 25 '12 at 08:33
  • I have seen it in Firefox and Chrome.I bet! – Nitesh May 25 '12 at 08:34
  • 1
    @Nitesh does not change the fact that you can't do it for your own website... unless you can convince mozilla, google, apple, opera and microsoft to make an exception for your site :P – meo May 25 '12 at 08:36
  • OK..Thanks everyone for your help. – Nitesh May 25 '12 at 08:41
  • @Tim..Dragging the site on home button and making home page..how can this be done or this is browser's default property? – Nitesh May 25 '12 at 08:43
  • @Nitesh this works for all browsers, try it, drag this to the home button: http://www.example.com – Timm May 25 '12 at 08:48
  • Ok so but how do viruses, and "stuff like toolbars" that sometimes you agree wihout noticing and that changes your homepage, how they do it? – Miguel May 26 '14 at 15:05
1

nitesh, google and bing don't do it... any browser that defaults to google or bing or the hewlett packard home page or whatever come pre-packaged with that site as it's home page... the only way to change this, is manually, either by:

1) high-lighting the address in the address bar and dragging it to the little "home" icon

2) going to the browser's settings and pasting or typing the address

3) installing software package such as yahoo messenger or the like, that changes these settings for you when you agree during the installation process, usually by checking a box and clicking agree

raoulbtc
  • 21
  • 3