Forum Moderators: open
I know that this is bad etiquette in the world of HTML, but it's something that I've been asked to do for my company's website.
I know how to make a pop-up window appear when a user closes the browser, but it's when the user navigates to another page on the website or clicks the refresh button that's causing some probems. I only want the pop-up to appear when the user leaves the site completely.
From what I gather, I think I need some Javascript code that recognises whether the user is still within the boundaries of the website. However, this sounds like it could cause some security issues.
Is it possible to get around this problem? Any help would be appreciated.
Maybe you can find the old thread through the WebmasterWorld site search [webmasterworld.com].