Welcome visitor
* Login
* Register
It is currently May 20th, 2019, 6:37 am
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 4 posts ] 
Author Message
  Keep visitors on my website, even for a bit longer
PostPosted: January 4th, 2010, 8:17 pm 

Posts: 28
Hey, I would like to get some advice on this. Right now the people visiting my site leave pretty soon so I would like to add the code to block the "back" button. Do you think this can help?


Top
 Profile  
 
  Re: Keep visitors on my website, even for a bit longer
PostPosted: January 5th, 2010, 7:38 am 

Posts: 61
It wont work if the users have javascript disabled, and if I found that a site do this I avoid it in the future, its annoying!


Top
 Profile  
 
  Re: Keep visitors on my website, even for a bit longer
PostPosted: January 6th, 2010, 12:29 am 
User avatar

Posts: 136
They can leave also by closing the window :ugeek:
:lol:


Top
 Profile  
 
  Re: Keep visitors on my website, even for a bit longer
PostPosted: January 7th, 2010, 5:11 pm 
User avatar

Posts: 52
Usually they create a first page that has this code
http://www.scriptingok.com/forum/t5_600-Block-going-back-button
<script language="JavaScript">
window.history.forward(1);
</script>

and then that page redirects you to the "main window". When you try to go back you always get to the main window, when you go back to the real first page it will forward you again to the main window.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

FORUMS » Client Side » HTML


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron