Forum Moderators: open
1) I have seen on some web sites that if you click on Back button in IE, it does not allow you go back but holds the visitor on your site. How do you do this? I guess I need some script for this. I don't want to diable Back button but if a user click on Back, it shold reload the current page.
2) I have seen on some web sites that when a user leaves your site, you offer them a pop up window. How do you do this. I just want to give pop up, if a user leaves my web site as a last attempt to offer him more. I don't want any pop up to appear if user is browsing my web site.
Thanks in advance for your help.
Use the site search [searchengineworld.com] link in the upper left of your screen. The site is loaded with java scripts and links to other sites.
One discussion Handy Generic Javascript Coding [webmasterworld.com] has several script examples.
Please help me. Thanks.
Here's a thread about getting a pop-up window only on exit [webmasterworld.com].
For the Back Button, you can get the effect you describe by using a redirect. The page the link takes you to redirects to a new page, the actual content you want the person to view. Any kind of redirect would work: Meta, Javascript, etc.
Then the Back Button takes you back to the page with the redirect, which reloads the page you were on. This makes people crazy, by the way ;)
It only works if you enter the page from a link, not from a bookmark or typing in the URL directly.