Default button

Hello all!
Is there a way to make a button on a form be activated by default (by pressing ‘return’ on the keyboard) even though it does not have the focus on it?
It comes instintively to press ‘return’ after typing, say a password, for example, but the log in button is not activated because it does not have the focus on it…

Thank you in advanced for any comments/suggestions!
Greets,
Marco

Hello
Could you provide us any graphic example?

Thanks for your reply Darya!
I’ll try to give you a sample over the next few days…
But the idea is very, very simple:
I have a form with 2 input boxes and a submit button…
you fill the first input and hit tab…
(focus passes to the second input)
you fill the second input and hit tab again…
(now focus passes to the submit button)
and finally hitting ENTER submits the form…

All I would like to do, if possible of course, is not having to hit tab a second time but just by hitting ENTER after typing in the second input you would automaticaly submit the form!

Thanks,
Marco

So…
Have you try onEnter event?
docs.dhtmlx.com/doku.php?id=dhtm … nt_onenter

Perfect Darya, this event is just what I needed!
Strange that it’s not in the documentation…
Thanks again!
Marco

Sorry, what I ment by documentation is the ‘dhtmlx35.chm’ file…
Greets!