Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

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
?
287 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Survive A High-Traffic Event with Percona

Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.

 
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

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.

Question has a verified solution.

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

When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
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…

671 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