How to disable Back button in Internet browser

October 9, 2009 Computer Tips And Tricks

I hate it when I go to a site and I click the back button and nothing seems to happen. This really irritates me and makes hp-laptopme feel very frustrated. Instead of going a page back, it just reloads the same page, again and again. Until I think I am going to go seriously mad.

There is a way that you can rectify this problem and make everything work better. There is a piece of code that will always work, which is a specific function that exists within the JavaScript. This has worked for me many times and I sincerely hope that it works for you.

So on the page that you do not want people to be able to come back to, you could try this code:

<body onLoad=”history.go(+1)”>

Maybe you can try this JavaScript code:

onLoad=”if(history.length>0)history.go(+1)”

If you’re not succeeding with that, try this out:

<script language=”javascript”>
window.history.forward(1);
</script>

Or even simpler, you can try this one:

<script>
history.forward();
</script>

SociBook del.icio.us Digg Facebook Google StumbleUpon Yahoo Buzz

Related posts:

  1. Windows – No Disk Exception Processing Message Error Whenever I switched on my PC, I’ll get a ‘Windows...

Related posts brought to you by Yet Another Related Posts Plugin.

Tags: , , , , ,

Leave a Reply

download cyclops movie