example:
<html>
<head>
<script>
function goBack()
{
window.history.go(-1);
return false;
}
</script>
</head>
<body>
<input type="button" value="Back" onclick="goBack()">
</body>
</html>
<html>
<head>
<script>
function goBack()
{
window.history.go(-1);
return false;
}
</script>
</head>
<body>
<input type="button" value="Back" onclick="goBack()">
</body>
</html>