Hi,
How to use the history.back property? I tried to put the event handler with my 'cancel' button. When I click cancel, it took me the the previous page as I wanted but then it took me back to the 2nd page again. What's wrong with the code? Please help.
Thank in advance.
How to use the history.back property? I tried to put the event handler with my 'cancel' button. When I click cancel, it took me the the previous page as I wanted but then it took me back to the 2nd page again. What's wrong with the code? Please help.
Thank in advance.
Code:
function cancel()
{
window.history.back();
}
<td align="right"><input type="image" src="images/cancel.gif" border="0" onclick="cancel();"></a></td>