Forum Moderators: open

Message Too Old, No Replies

         

Jag

10:03 pm on Jan 13, 2002 (gmt 0)



I am trying to figure out following two issues for some time but still don't have the answer:

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.

mdharrold

10:14 pm on Jan 13, 2002 (gmt 0)

10+ Year Member



Jag,

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.

Jag

2:27 am on Jan 14, 2002 (gmt 0)



I checked all of them but could not find anything which cover both above. I have just basic knowledge of JS so some of the scripts were out of my understanding. Many of these have no explanations what they are supposed to do. I guess people submitted them thinking most of the visitors know good JS.

Please help me. Thanks.

tedster

4:17 pm on Jan 20, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Jag,

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.