Hi. I am editing code/html that is using
<input type = text name = PASSWORD_NAME size = 40 maxlength = 256 id = "passwordName" onkeydown = "checkEnter(event)">
I created the checkEnter method in some javascript that does what it says, checks for enter; if the user did hit enter, it will carry out a function, if not it will do nothing. The issue here however is that when the user hits enter, it doesnt do what my checkEnter function says, but say if i told my method to check for the tab key to be hit instead of enter, it will do what its suppose to.
So my question is this: What does <input type=text ..> do exactly when a user hits enter by default, because what ever it is, its being called befor my checkenter check. Im pretty sure it doesn't "submit" because i tried adding a "onSubmit = return null" in the <form ..> area, and it did nothing.
Thank you in advanced for helping/thinking about this issue.
-Sean
<input type = text name = PASSWORD_NAME size = 40 maxlength = 256 id = "passwordName" onkeydown = "checkEnter(event)">
I created the checkEnter method in some javascript that does what it says, checks for enter; if the user did hit enter, it will carry out a function, if not it will do nothing. The issue here however is that when the user hits enter, it doesnt do what my checkEnter function says, but say if i told my method to check for the tab key to be hit instead of enter, it will do what its suppose to.
So my question is this: What does <input type=text ..> do exactly when a user hits enter by default, because what ever it is, its being called befor my checkenter check. Im pretty sure it doesn't "submit" because i tried adding a "onSubmit = return null" in the <form ..> area, and it did nothing.
Thank you in advanced for helping/thinking about this issue.
-Sean