milani_lucie
asked on
VBScript In IE Issue
I have the following VBScript code on client side which is NOT working in IE. Can you please FIX this ?
Thanks
<html>
<head>
<script type="text/vbscript">
Sub MethodKeyboard(e)
If (window.event.keyCode = 13) Then
window.document.form1.submit()
End If
End Sub
Sub Init()
window.document.form1.text2.onkeydown = GetRef("MethodKeyboard")
End Sub
window.onload = GetRef("Init")
</script>
</head>
<body>
<form name="form1" action="Submit.asp" method="post">
<input type="text" name="text1" value="">
<input type="text" name="text2" value="">
<input type="button" name="button1" value="Click">
</form>
</body>
</html>
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER