Forum Moderators: open
But I only want this message to appear when they leave my site. Going from page to page within the site doesn't count.
Right now I'm thinking something like the onload command only at the exit. But again, going from page to page doesn't count. I only want the message to appear when the surfers leave my site.
Help!
If there really is a need for this then, with some fairly simple coding, you should be able link to your warning page and pass the address of the target page as a parameter.
I would never force a message on a visitor who left with the back button or via a bookmark.
The best thing you could do (depending what your goal was), is to tag in some way (either with little icons beside them, different background color, a little div which appears under it when hovered, etc) links which will leave your site.
This can be done quite easily with a css attribute selector, something I don't think IE6 supports though.