I have a button in HTML, and when i push it, i want to go back to the page i was before , do you know the javascript command for that
(It supposed to work like the Back button beneath the file menu.
thanxs
Printable View
I have a button in HTML, and when i push it, i want to go back to the page i was before , do you know the javascript command for that
(It supposed to work like the Back button beneath the file menu.
thanxs
I think it's just a function called Back() (or maybe back() - JavaScript is cases sensitive =] )
Code:<html>
<head>
<script LANGUAGE="JavaScript">
<!-- hide this script tag's contents from old browsers
function goHist(a)
{
history.go(a);
// Go back one.
}
//
<!-- done hiding from old browsers -->
</script>
</head>
<body bgcolor="#000000">
<p align="center"><input TYPE="button" VALUE="BACK" onClick="goHist(-1)"> </p>
</body>
</html>