Show a holding page on exit

Reply

Join Date: Jan 2004
Posts: 10
Reputation: IbnKuldun is an unknown quantity at this point 
Solved Threads: 0
IbnKuldun's Avatar
IbnKuldun IbnKuldun is offline Offline
Newbie Poster

Show a holding page on exit

 
0
  #1
Sep 14th, 2005
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.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 87
Reputation: TopDogger is an unknown quantity at this point 
Solved Threads: 5
TopDogger's Avatar
TopDogger TopDogger is offline Offline
Junior Poster in Training

Re: Show a holding page on exit

 
0
  #2
Sep 14th, 2005
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.
Reply With Quote Quick reply to this message  
Join Date: Jan 2004
Posts: 10
Reputation: IbnKuldun is an unknown quantity at this point 
Solved Threads: 0
IbnKuldun's Avatar
IbnKuldun IbnKuldun is offline Offline
Newbie Poster

Re: Show a holding page on exit

 
0
  #3
Sep 15th, 2005
Atleast its an idea

I'll have a look into that.

Cheers
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the IT Professionals' Lounge Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC