I would like to adapt this script to go back 2 pages, as I'm trying to bypass a browser redirection page which has disabled my Back button. Yeah...I tried to contact Nicolas at javascript-page.com but as of yet he is non-responsive. Any help?


<script language="Javascript">
<!--
// please keep these lines on when you copy the source
// made by: Nicolas - http://www.javascript-page.com

var your_message = "Do you really want to leave this page?";
var times = 0;

function onul() {
if (times == 0) {
var leave = confirm(your_message);
if (!leave) location = self.location;
times++;
}
}

//-->
</script>
<body onunload="onul()">