• Welcome to NamesLot.com Domain Name Forum

    NamesLot.com Domain Name Forum offers a fully open forum to discuss domain industry news and a 0% commission marketplace for you to buy and sell domain names.

    We have reorganized our Marketplace so now it is easier to get attention to your domain while it is also easier for buyers to find the right domain name.

    If you want us to add more threads to our marketplace, please contact us! Listing on our marketplace as always, 100% free! Register NOW or Login HERE!

Page reloading when hitting enter in textbox, not executing code

Status
Not open for further replies.

chaneguye

New Member
I have a script that allows the user to enter a number into a text box and then click the button (type="button" not submit) and then it just updates a <div> with the calculated value. That all works fine. My problem is that if I just entered the number into the textbox and then I hit the enter key while my cursor is still inside the text box it refreshes the page instead of executing the javascript that it is supposed to. Originally I thought I had just made a stupid mistake and made it type="submit" instead of "button" but thats not it.

Any ideas? Thanks
 
Status
Not open for further replies.

Members online

No members online now.

Forum statistics

Threads
19,887
Messages
69,884
Members
44,590
Latest member
KRS_Infotech
Active members today
2
New members today
0
New threads today
5
New posts today
5

Follow NamesLot on Twitter!

NamesLot proudly supported by

NamesLot proudly supported by

Top