Make a page the Home Page

Is there code available to allow a user to click on a button on a web page and have the current page become their home page. Please provide code and if possible cross-browser code.
LVL 1
JustinBAsked:
Who is Participating?
 
garfldConnect With a Mentor Commented:
Try this:

<a href="" onClick="this.style.behavior='url(#default#homepage)';
this.setHomePage('http://www.Yourpage.com/');"style="color:
blue; cursor: hand;">Click here to make Yourpage your
default homepage!</a>

Betsy
0
 
JustinBAuthor Commented:
Thanks, that is what I wanted.

Could you tell me if it works in both netscape and explorer and if you know what versions.

justinB@iinet.net.au
0
 
garfldCommented:
Sorry, i don't know, you'll have to try it yourself.

Betsy
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.