Send viewer back to where they came from

Updated: 01/31/2019 by Computer Hope
send viewer back

Example

HIT STOP (Esc) 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>