Click to See Complete Forum and Search --> : Set Home page?


candyman
07-03-2003, 10:34 PM
Not sure if this is the right place for this? but here it goes.

I have an old main web page url that I have changed. When a user keys in the old url he is directed to a redirect page that then sends them to the new url main page. What I'd like to do is have my new home page recognise users that have come via the redirect page and give them the opportunity to set their home page to the new URL? Can this be done easily?

Khalid Ali
07-03-2003, 10:44 PM
There is a
document.referrer

property but its not exactly trustworthy...

if your home page ends in something like*.html
then what you can do is append some identifying character at the end of url from the redirect page and parse the url for this appended flag if its their then you can offer the user to make this your homepage

candyman
07-03-2003, 10:47 PM
sorry...I'm a little green behind the ears:(

Are you able to help me with the code for this?

jdavia
07-03-2003, 10:48 PM
Why not let anyone do it. it might be easier. This is for IE.
<!--[if IE]>
<a HREF onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.javascriptsource.com');"><img src="http://javascript.internet.com/img/set-home-page/house.gif"> Click here to make this your default homepage!</a>
<![endif]-->

candyman
07-03-2003, 10:55 PM
sorry...I'm a little green behind the ears:(

Are you able to help me with the code for this?