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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTTP Form or Link click

Status
Not open for further replies.

sfunk

Technical User
Jan 22, 2002
107
US
Hello,

I have a little utility that I'm trying to write. I am using an HTTP COM component to send a http get with a URL of . The page that is returned has either a html form submit button or a html hyperlink that needs to be clicked. When clicked it appends a session id to the string such as .

I need to know how I can simulate clicking on a link or a Form Submit button? I will know a head of time and can create a value of weather it's a Form Submit or a link AND what the name of the button is or the text in the hyperlink is.

I have the ability to use components from:

I hope I haven't given too much or too little description.

I appreciate any help or guidance.

Sincerely,
Steve
 
if you give the link an id you can just say (in javascript)

linkID.click

if you want to submit a form (if its the first form on the page):

document.forms[0].submit();
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top