• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 464
  • Last Modified:

VBScript In IE Issue

I have the following VBScript code on client side which is NOT working in IE. Can you please FIX this ?



		<script type="text/vbscript">

		Sub MethodKeyboard(e)

			If (window.event.keyCode = 13) Then


			End If

		End Sub

		Sub Init()

			window.document.form1.text2.onkeydown = GetRef("MethodKeyboard")

		End Sub

		window.onload = GetRef("Init")




		<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">




Open in new window

1 Solution
Peter KwanAnalyst ProgrammerCommented:
Just need to remove the parameter e in your "Sub MethodKeyboard(e)".
milani_lucieAuthor Commented:
Works Great !
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now