monkeyboy
01-26-2006, 07:40 PM
Hi there. I'm using the code below to execute a javascript function when a correct password is entered into a textbox. It works fine when the button is clicked, but not if users type in the password and then press 'enter'... is there some way I can get this to work?
<FORM ACTION="#" NAME=verify>
<input id="photos" type=password size=10>
<input type="button" value="click" onclick="javascript:Check()">
</FORM>
<SCRIPT TYPE="TEXT/JAVASCRIPT">
document.verify.photos.focus()
</SCRIPT>
The page is here (http://www.chuffingmarvellous.com/photo/photos.htm).
<FORM ACTION="#" NAME=verify>
<input id="photos" type=password size=10>
<input type="button" value="click" onclick="javascript:Check()">
</FORM>
<SCRIPT TYPE="TEXT/JAVASCRIPT">
document.verify.photos.focus()
</SCRIPT>
The page is here (http://www.chuffingmarvellous.com/photo/photos.htm).