Results 1 to 3 of 3

Thread: Auto clicking of buttons in a HTML form

  1. #1

    Thread Starter
    Fanatic Member 007shahid's Avatar
    Join Date
    Feb 2001
    Posts
    562

    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

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Auto clicking of buttons in a HTML form

    If you want to submit the form, just do a document.form.submit()

  3. #3

    Thread Starter
    Fanatic Member 007shahid's Avatar
    Join Date
    Feb 2001
    Posts
    562

    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
  •  



Click Here to Expand Forum to Full Width