Monday, April 18, 2011

How to Go Back Last Page in Java Script!


Windows.history.back();
Syntax
history.back()

<html>
<head>
    <title>History: Go Back</title>
    <script language="javascript">
function goback()
{
window.history.back();  //for go back
}
</script>
</head>
<body>
<p>You can go back by clicking this button </p>
<input type="button" value="Go back" onclick="goback()" />
</body>
</html>

No comments:

Post a Comment