PDA

View Full Version : Saving Form data Question.


angst
03-08-2006, 03:07 PM
Hello,
I'm wondering, is there a way that I can submit a form by clicking Ctrl+S using javascript?

thanks in advance for your time!
-Ken

Kravvitz
03-08-2006, 07:20 PM
No, but you can use a form's submit() method.

http://javascriptkit.com/jsref/form.shtml

angst
03-08-2006, 07:23 PM
well, I know about that.
But I'm pretty sure there are javascript keyboard mappings, so I *think* I can build a function to do the submit on the the Ctrl+S event.

just not exactly sure what the key codes are.

thanks again,
-Ken

Kravvitz
03-08-2006, 07:28 PM
http://www.alistapart.com/articles/accesskeys/