Click to See Complete Forum and Search --> : Third Party Alert Window


Mudflap4874
05-21-2003, 06:53 AM
here's the scenario - a user clicks on a link in page01.htm that goes to another website. a window pops up saying "you are about to leave this website, etc ...." they click the OK button and they get directed to the new site in a new browser.

how would i set up the function(s) to pass the URL of the new site from page01.htm to the pop up window and to the OK button? there will be different links to new sites in different pages so i don't want to hard code specific URLs.

does that make sense? thanks for your help!

Vladdy
05-21-2003, 08:33 AM
If I click on a link I know that it will take me to a different place. I do not need any popup window telling me about it.
What are you trying to achieve in the first place:confused:

Mudflap4874
05-21-2003, 08:55 AM
sorry for the confusion ..

what happens is you are on siteA, you click a link to go to siteB. before getting to siteB, a pop-up window says you are leaving siteA and siteA is not responsible for what content is on siteB (it's a disclaimer basically). you click OK and are taken to siteB. click cancel and you stay at siteA.

i know i can create the link to the pop-up window but i want the pop-up window to know which link to go to when you click OK. there are many links to new sites on siteA. i thought that a variable for the new site URL could be used but i'm not sure how to set that up.

does that help? let me know if i just made it worse :)
- thanks

Vladdy
05-21-2003, 09:02 AM
What I'm trying to say is that a popup is about the worst way to approach the problem. What happens if user has JS disabled or has a pop-up blocker installed?
I'm not sure why do you need a disclaimer like that at all. When one hovers over the link, its URL is shown in the status bar so it's obvious when the domain is being changed.
Also if you do need something like that, design the layout accordingly - group all the external links together, or apply different style to them, so visitor knows which link will navigate him/her around the site and which one will take him/her elsewhere.
Adding popups like that will only make sure visitors will never be back.

Resource
05-21-2003, 09:26 AM
I Have to agree with Vladdy, why don't you put your disclaimer into the alt tag for the external link(s) that way it will always be there reguardless of the browser or popup blocking.

Jim

Mudflap4874
05-21-2003, 09:26 AM
oh believe me, i understand what you are saying. i'd rather not have to do the pop up either, but this is an intranet site for a pretty large company and despite the advice i gave them about pop-ups they still want to include it. they have to deal with their legal and audit depts so there's not much i can do to change their minds.

can you still help with the scenario i have described?

thanks

Resource
05-21-2003, 09:29 AM
I understand perfectly, fighting a copyright issue with a client myself, finally convinced them not to disable the right click but they want a the warning.

Jim

Vladdy
05-21-2003, 09:33 AM
Oh well....

instead of having external link like:
<a href="www.msn.com">MSN</a>
do
<a href="damnpopup.html?target=www.msn.com" onclick="return popUp('damnpopup.html?target=www.msn.com');>MSN</a>

in damnpopup.html have your disclaimer and then process the query string to extract the target link. You can do it either server side (better) or client side (if JS is disabled user goes nowhere).

Charles
05-21-2003, 09:34 AM
Originally posted by Mudflap4874
they have to deal with their legal and audit depts so there's not much i can do to change their minds.If this is for something in the United States the show legal the following links.

The Amerians with Disabilities Act
http://www.usdoj.gov/crt/ada/pubs/ada.txt

The US Department of Justice's opinion that the ADA applies to the internet
http://www.usdoj.gov/crt/foia/tal712.txt

The W3C's Web Content Accessibility Guidelines
http://www.w3.org/TR/WCAG10/

They could get sued for using pop up windows.

Mudflap4874
05-21-2003, 02:52 PM
thank you for the help and the advice - i will be sure to pass those articles along ...