<html>
<head> <title> Testing </title> </head>
<body>
<form>
<input type="text" name="text1" >
<input type="button" name="button1" value="button" onclick="test1(this.form)">
</form>
<SCRIPT LANGUAGE="JavaScript">
function test1(form) {
alert(form.text1.value);
}
</SCRIPT>
<SCRIPT>
history.forward();
</SCRIPT>
</body>
</html>