- 1). Open the webpage code in the HTML or text editor. Insert the following code within the page's header, between the </title> and </head> tags:
<script>
function backButtonOverrideBody()
{
try {
history.forward();
}
catch (e) {
}
setTimeout("backButtonOverrideBody()", 500);
}
</script> - 2). Replace the <body> tag with the following line:
<body onLoad="backButtonOverride()"> - 3). To circumvent a bug affecting Safari browser users, add the following code between "<script>" and "function backButtonOverrideBody()":
function backButtonOverride()
{
setTimeout("backButtonOverrideBody()", 1);
}
SHARE