PDA

View Full Version : A Newbie Question


Mark Sardar
9-30-02, 07:29 AM
I am trying to make a link in my site that when the user click on "make this page as home", the page will become their default home page. How do I do this? Sorry about this newbie type question but a hint will be appreciated.

Thanks

alphadesk
9-30-02, 09:55 AM
This uses a small homepage graphic, just edit as needed.

<img border="0" src="img/makehome.gif" width="22" height="22">&nbsp; <a href="#" OnClick="this.style.behavior='url(#default#homepage)';this. setHomePage('http://www.yourdomain.com');" title="Make YourDomain your homepage?">Make Homepage</a>

OnTheNet
9-30-02, 10:00 AM
Does that work in NS also?

alphadesk
9-30-02, 10:21 AM
Nope, only IE5+

Mark Sardar
9-30-02, 11:58 AM
Thank you so much Alphadesk for your reply. Yes it's working perfect. I would like to ask one more related question. I found when I close some web site and a pop up window shows up saying "Set it as home page?". Where do I get the code for it.
Thanks in advance :D

alphadesk
9-30-02, 12:11 PM
I know which one you are talking about, but can't find it now. You can use this and then use the code you already have. It would give it a custom look.

http://www.javascriptkit.com/script/cut65.shtml