Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Use Javascript to press a button

Status
Not open for further replies.

FesterSXS

Programmer
Feb 4, 2002
2,196
GB
I have a simple search form on a page in my PDF. This is just made up of a text box and a Search button.

I already have the search code working when the Search button is pressed (using search.query etc...)

I have also added some custom keystroke code to catch when the user presses Enter within the text box.

What I don't have is the syntax for pressing the Search button when Enter is pressed. I have the following so far:
Code:
if (event.commitKey == 2) {
// need some code here to press the submit button
}
Any help much appreciated

thanks


Tony
________________________________________________________________________________
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top