Link to home
Start Free TrialLog in
Avatar of zwheeler
zwheeler

asked on

User Leaving Site

I want to notify the user that they are leaving the site. the site is a combination of classic asp and asp.net. what is the best way to do this.
ASKER CERTIFIED SOLUTION
Avatar of sybe
sybe

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of zwheeler
zwheeler

ASKER

how do i direct them to the the page from with in my application (classic asp), that tells them they are leaving the site.
so you are on my site, for example: straining.com/lesson1/file.asp

now, they want to leave my site: they type a www.msn.google
how do i redirect this request to leaving_site.asp page
Ah, if they type another address, then my technique wouldn't help - only if they click a link on your site. Same goes if they open another tab. Personally, I'd be really ticked off at a site that nagged me about leaving when I type in a URL - but I'm sure it can be done with JavaScript. Sybe's suggestion might work.