Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using ASP to add a disclaimer for external links

Status
Not open for further replies.

keithlages

IS-IT--Management
Feb 7, 2002
35
US
I have a few webpages that have multiple links to external sites. I need to produce a disclaimer after the user clicks the link but before the external site is displayed. Preferably without the use of a pop-up.

Can anyone direct to me to a fast and easy way to send a user to a disclaimer page before allowing them to continue to an external link from my site?

I really don't want to create 100 or more pages for this.

I was originally thinking to save the the external url as a variable after an onclick and then using a single page that displayed a disclaimer and then populated a link with the variable.

So far the only thing I can think to do is create a single dislaimer page and then use an #include on a new page for every external link on my site.

Thanks
 
You can do it by just adding a single page, a redirect and then passing some variables to the new page. You can also do it with a popup, though you've indicated that is not preferred, so we'll skip that part.

Create a new page that writes out a standard disclaimer: "You are now leaving our site and going to [insert variable here for new URL]. We are not responsible for the content on [insert variable here for new URL]." You can also give them two buttons, one to go to the new page or a back button (to return to the previous page). You can also just have the page popup for 5 seconds before automatically redirecting. The choice is up to you.

On the page(s) with the links, make the external links (<a href>) go to the newly created page and you can pass along a querystring variable that holds the external link. Then, in the new page, set it up to do a redirect based on the querystring passed in from the first page. This leaves you with just one new page and a pretty flexible to pass your users along to the new sites.

If you have more specific questions, feel free to ask...

------------------------------------------------------------------------------------------------------------------------
"Men occasionally stumble over the truth, but most of them pick themselves up and hurry off as if nothing ever happened."
- Winston Churchill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top