Auto clicking of buttons in a HTML form
I have a button in a form named 'butt'. The following code sets focus to that button...
document.form.butt.focus()
Is there a way to use a similar line to call the click event of the button?
I am trying to automatically send data in a POST actioned form.
Is there any way to do this, if not the above?
Appreciate any help.
Re: Auto clicking of buttons in a HTML form
If you want to submit the form, just do a document.form.submit()
Re: Auto clicking of buttons in a HTML form
that was a perfect reply. Thanks :thumb: