Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2008-06-19
6
Medium Priority
?
290 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 2000 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 does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
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.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

886 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