Web Page Development: "Leaving Site" message

LANMAN

Platinum Member
Oct 10, 1999
2,903
134
106
I'm looking for instructions on how to make my web page tell the users they are leaving my site.

Can anyone lend a helping hand on how I do this?

Thanks in advance...

--LANMAN

 

CTho9305

Elite Member
Jul 26, 2000
9,214
1
81
Originally posted by: LANMAN
I'm looking for instructions on how to make my web page tell the users they are leaving my site.

Can anyone lend a helping hand on how I do this?

Thanks in advance...

--LANMAN

when? when they click a link on your page going elsewhere? when they navigate away intentionally? If it's the former, change your links to use a simple javascript that does a confirm() before document.location.href= the new place. If it's the latter, you'll need an onunload script (which your own links disable first so that every click doesn't inform them)
 

Barnaby W. Füi

Elite Member
Aug 14, 2001
12,343
0
0
Put a little key next to the links, or put [offsite] or something after the links, or just leave it alone. This is why all browsers have a status bar that shows you where urls point to. When designing web pages, it is best (in my opinion of course) to stop worrying about controlling peoples' browsers and just write the page to do what it's supposed to do: present content. Browsers have been evolving for over a decade (?) and are perfectly capable of allowing the users to navigate for themselves.
 

LANMAN

Platinum Member
Oct 10, 1999
2,903
134
106
Originally posted by: BingBongWongFooey
Put a little key next to the links, or put [offsite] or something after the links, or just leave it alone. This is why all browsers have a status bar that shows you where urls point to. When designing web pages, it is best (in my opinion of course) to stop worrying about controlling peoples' browsers and just write the page to do what it's supposed to do: present content. Browsers have been evolving for over a decade (?) and are perfectly capable of allowing the users to navigate for themselves.

I couldn't agree with you more! :)

Unfortunately my hands are tied on this issue.

CTho9305:

Thanks for the info! I'll plug it in and give it a try. Hopefully, my end goal for it to work should say: "Warning: Your leaving www.myweb.com's site. "

--LANMAN