|
-
Oct 7th, 2005, 07:30 AM
#1
Thread Starter
Fanatic Member
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.
THE TIME/WEATHER IS 
Don't know how to use APIs or have problem with them,
Download API-Guide & API-Viewer from http://www.allapi.net
-
Oct 7th, 2005, 08:06 AM
#2
Re: Auto clicking of buttons in a HTML form
If you want to submit the form, just do a document.form.submit()
-
Oct 7th, 2005, 10:31 AM
#3
Thread Starter
Fanatic Member
Re: Auto clicking of buttons in a HTML form
that was a perfect reply. Thanks
THE TIME/WEATHER IS 
Don't know how to use APIs or have problem with them,
Download API-Guide & API-Viewer from http://www.allapi.net
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|