/    Sign up×
Community /Pin to ProfileBookmark

Set Home page?

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?

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@Khalid_AliJul 04.2003 — 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
Copy linkTweet thisAlerts:
@candymanauthorJul 04.2003 — sorry...I'm a little green behind the ears?

Are you able to help me with the code for this?
Copy linkTweet thisAlerts:
@jdaviaJul 04.2003 — 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]-->
Copy linkTweet thisAlerts:
@candymanauthorJul 04.2003 — sorry...I'm a little green behind the ears?

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

Success!

Help @candyman spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...