Solved

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

Posted on 2008-06-19
6
280 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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

813 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

10 Experts available now in Live!

Get 1:1 Help Now