Javascript:Disable Back Button in Browser.

Disable Back Button in Browser(IE,firefox,Google Chrome, Opera, Safari, Internet Explorer) using javascript.
In this tutorial, I will explain how to disable the back button on FireFox's/IE browser.
this code will works for all web browsers such as Google Chrome, Opera, Safari, Internet Explorer etc.
Please check two methods to somewhat disable a browser's Back button.
<script language="javascript" type="text/javascript">

Below code will work on all browsers.

<SCRIPT type="text/javascript">
    function disableBack() 
<BODY onload="disableBack();" onpageshow="if(event.persisted) disableBack();">