Hi everybody,
I have a question:
:-/
I want to submit a form in an HTML page by pressing Enter and it does not submit if I press Ctrl+Enter
Pro2000 29 Posting Whiz
Recommended Answers
Jump to PostA form is by default submitted when you press the return key. You need to show us how your form is structured so that we can offer more suggestions. Paste your code here with code tags.
Jump to PostYou need to attach an event listener to the onkeypress event handler of the form element which would monitor the key strokes and submit the form as soon as a RETURN key is pressed.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
All 6 Replies
Pro2000 29 Posting Whiz
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster
Pro2000 29 Posting Whiz
hielo 65 Veteran Poster
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster
Pro2000 29 Posting Whiz
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.