I have this code:
In Internet Explorer, if you press ENTER while the inputbox or the button has got the focus, an Alert will be displayed. So, it works fine in IE.
But in Firefox, you can see the Alert only if you press the button.
How can I fix this bug in Firefox?
Thank you.
Code:
<input type="text" name="message" id=message size="76"> <input type="submit" value="Send" name="B1" onclick="alert('demo')">
But in Firefox, you can see the Alert only if you press the button.
How can I fix this bug in Firefox?
Thank you.
Comment