Forum Moderators: open
I have many pages (calculators) like this and they all work fine and all use text boxes. If I put the cursor in any text box and press the Enter key, nothing happens. Well, with Internet Explorer it pings.
In a new page I am creating, when I do this it causes the page to reload.
I probably screwed the coding up somewhere, but I'm looking for hints. What should happen if you put the cursor in a text box and press Enter?
<input type=text size=7 maxlength=7>
It's just this simple.
In playing around to try to find the problem, I found that if I put two text boxes it solved the problem.
<input type=text size=7 maxlength=7>
<input type=text size=7 maxlength=7>
Just in case that's a clue.
I actually use onChange in all my text boxes on all my pages including this text box and it works just great. This text box works just as I want it to. I removed the onChange to be sure that wasn't part of the problem.
The only other odd thing about this page is that it's the only one with one text box. Maybe I have some problem on all my pages that is weirdly fixed by having more than one box.
Thanks, Peter