944,145 Members | Top Members by Rank

Ad:
Sep 14th, 2005
0

Show a holding page on exit

Expand Post »
Guys, not sure what to search for in order to get an answer for my query, so apologies if this has been answered before.

Essentially, on my site i have URL's to external sites. Whenever someone clicks on an URL pointing to an external site I want them to be directed to a temporary holding page (which will contain an advert) , after a five second delay the holding page will be refreshed so that it displays the content of the external URL.

Does anyone have any pointers on how this can be done?

I know i could use a meta-tag to do the refresh, but not sure how to get people to go to the holding page.

Any help would be much appreciated.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
IbnKuldun is offline Offline
10 posts
since Jan 2004
Sep 14th, 2005
0

Re: Show a holding page on exit

I'm not sure you can accomplish everything you want to do, but you should check out the JavaScript 'onUnload' event handler. It is placed in the body tag and is intended to run a JavaScript routine when someone tries to leave a page. I've seen it used for pop-ups.

Obviously, it will only work when a user has JavaScript enabled.

Hope that helps.
Reputation Points: 15
Solved Threads: 5
Junior Poster in Training
TopDogger is offline Offline
87 posts
since Aug 2005
Sep 15th, 2005
0

Re: Show a holding page on exit

Atleast its an idea

I'll have a look into that.

Cheers
Reputation Points: 10
Solved Threads: 0
Newbie Poster
IbnKuldun is offline Offline
10 posts
since Jan 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in IT Professionals' Lounge Forum Timeline: Google Starts Blog Search
Next Thread in IT Professionals' Lounge Forum Timeline: Massachusetts Open Source Requirement





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC