Solved

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

Posted on 2008-06-19
6
279 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

911 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

22 Experts available now in Live!

Get 1:1 Help Now