471,881 Members | 1,404 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,881 software developers and data experts.

how to set the Default homepage using javascript without prompting a pop up.

Anyone know how to set the Default homepage using javascript without
prompting a pop up.

Below is the code i used to set default home page.

<a href="#"
onClick="this.style.behavior='url(#default#homepag e)';this.setHomePage('http://
www.xyz.com');">set the homepage</a>

The problem with this code is when i click the link it prompts me a
popup window asking "Would you like to set your Home Page to http://www.xyz.com".

I don't want the popup window to display. is their a way to avoid it
and directly set the default home page.

Aug 17 '07 #1
2 6889
On Aug 17, 12:50 pm, pavi <tutor...@gmail.comwrote:
Anyone know how to set the Default homepage using javascript
without prompting a pop up.

Below is the code i used to set default home page.

<a href="#"
onClick="this.style.behavior='url(#default#homepag e)';
this.setHomePage('htt*p://www.xyz.com');">set the homepage</a>

The problem with this code is when i click the link it prompts me a
popup window asking "Would you like to set your Home Page
tohttp://www.xyz.com".

I don't want the popup window to display. is their a way to
avoid it and directly set the default home page.
Don't be silly. If that were allowed half the web sites on the planet
would automatically set all their visitor's home pages to their own
site every time they visited. It would make a nonsense out of the
concept of a home page, and would be very unpopular.

Aug 17 '07 #2
pavi wrote:
Anyone know how to set the Default homepage using javascript without
prompting a pop up.
This is an evil thing to do.
Below is the code i used to set default home page.
<a href="#"
onClick="this.style.behavior='url(#default#homepag e)';this.setHomePage('http://
www.xyz.com');">set the homepage</a>
If your site is so good that people will want to make it their home
page, they will set it themselves. Having a link just for this purpose
is foolish.
I don't want the popup window to display. is their a way to avoid it
and directly set the default home page.
No.

--
Joe Attardi
ja******@gmail.com
Aug 17 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by pcchong | last post: by
3 posts views Thread by apple | last post: by
7 posts views Thread by Bill H | last post: by
10 posts views Thread by Eirik Eldorsen | last post: by
reply views Thread by YellowAndGreen | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.