Solved

I would like to add a "You Are Now Leaving Page" message to our ASP page.

Posted on 2008-06-19
6
278 Views
Last Modified: 2008-06-19
Could someone tell me how to add a "You Are Now Leaving Our Page" message to any external link within our website or page?

Thanks in advance.
0
Comment
Question by:ExchAzag
  • 4
  • 2
6 Comments
 
LVL 15

Expert Comment

by:dosth
ID: 21822223
where ever you have a link, you need to call a javascript function with the ulr you need to go and alert in the function

function alertweb(url)
{
alert("You Are Now Leaving Page");
document.form.action = rul;
document.all.sumbit();
}
0
 

Author Comment

by:ExchAzag
ID: 21822825
Excuse my ignorance with Javascript.  Could you possible give me an example with <a href="http://www.google.com/">GOOGLE</a>?  I'm assuming I need to add some sorft of script language=javascript into the body?

Thanks
0
 
LVL 15

Accepted Solution

by:
dosth earned 500 total points
ID: 21822945
thanks
dosth
<html>

<head>

<title>Untitled Document</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

</head>

<script>

function goto(url)

{

alert("You Are Now Leaving Page");

document.location.href = url;

}

</script>

<body>

<a href="#" onClick="javascript:goto('http://www.google.com');">Google.com</a>

</body>

</html>

Open in new window

0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 15

Expert Comment

by:dosth
ID: 21823865
got the idea?

Thanks
Dosth Mohammed
0
 

Author Comment

by:ExchAzag
ID: 21824165
Yes, thanks.
0
 
LVL 15

Expert Comment

by:dosth
ID: 21828643
Thanks for the points

Thanks
Dosth
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Read about why website design really matters in today's demanding market.
I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
The viewer will learn how to dynamically set the form action using jQuery.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now