Send viewer back to where they came from

Example

HIT STOP IF YOU NEED TO GET THE SOURCE CODE!

Is your web page under construction or do you not want visitors, or want to make your visitor get a little mad? Copy this script that makes the browser go back to the page that the viewer came from.

Source code

<script type="text/javascript">
setTimeout("history.back();", 7000);
</script>

  • Category
  • Cool Tricks
  • Related pages
  • HTML Help
  • Solved?
  • Were you able to locate the answer to your question?