-
help in document
code 1 <INPUT type=submit value="Sign In" name=.sin>
code 2 <INPUT type=submit value=Finished name=Submit>
here is 2 code i dont understand why 2 number wont work
1 code i use as like
document.all(".sin").click
its working
2nd i use as same but its wont working any one got idea why its wont work???
Code:
code 2
<TD noWrap align=right> <INPUT type=submit value=Finished name=Submit> <INPUT type=submit value=Cancel name=.cancel>
</TD></TR></TBODY></TABLE></CENTER></FORM></CENTER>
Code:
code 1
class=yreglgsb><INPUT type=submit value="sin" name=.save></P></FORM></FIELDSET>
-
Re: help in document
what is the action of the 2 forms
this really isn't VB, ask a moderator to move to a more appropriate forum
-
Re: help in document
I'm a bit confused as to exactly what you're trying to do. You need to locate the Item by its name property not it's value property.
In code 2 above, there are 2 INPUT items, Submit and .cancel to click on Submit you would use:
Code:
WebBrowser1.Document.Forms(0).Item("Submit").Click
To click on the .cancel item you'd use
Code:
WebBrowser1.Document.Forms(0).Item(".cancel").Click
assuming that they are in the first Form on the Page. (If they're not, then replace Forms(0) with Forms(n) where n is the form number-1)
-
Re: help in document
i had with these code but its wont work:(