Directly referencing an element on a web page in the WebBrowser control 
Author Message
 Directly referencing an element on a web page in the WebBrowser control

I would like to change the value of an element in an HTML page
returned by the WebBrowser control. I can do so by iterating through
the elements collection but the documentation indicates that I could
use the element name to refer directly to the element. What is the
syntax for that?


Tue, 14 Jun 2005 00:59:30 GMT  
 Directly referencing an element on a web page in the WebBrowser control
The standard is to use ID but I think IE/WB will also
recognize NAME. The element has to have NAME or ID
attribute in the tag:

for a sub:

Sub Button1_onclick()
End Sub

Use in tag:

 <INPUT TYPE="button" ID="Button1" NAME="Button1>

--
--

Quote:
> I would like to change the value of an element in an HTML page
> returned by the WebBrowser control. I can do so by iterating through
> the elements collection but the documentation indicates that I could
> use the element name to refer directly to the element. What is the
> syntax for that?



Tue, 14 Jun 2005 07:18:18 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Saving web pages to file using webBrowser or inet control

2. Saving web page with images using the WebBrowser control

3. Saving web pages with WebBrowser control

4. Saving a complete Web Page from the WebBrowser control

5. Webbrowser control - Saving a web page

6. How to capture Web Page to Bitmap with Webbrowser control

7. new problem of webbrowser control save web page

8. webbrowser control save web page

9. acessing form elements with the webbrowser control

10. Error referencing control array elements

11. Checking for error http 404 on web page loading with webbrowser object

12. WebBrowser Ctl: save web page to local machine

 

 
Powered by phpBB® Forum Software