Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


HTML DOM and Objects Library Question

HTML DOM and Objects Library Question

HTML DOM and Objects Library Question

Greetings all,

I have a weird situation.  I need the ability to load a particular HTML DOM path from a config file and be able to reference it once I have a selected web page displayed within the webbrowser control.  For example:

The dom path to a select box on a webpage would be something like:


The problem arises that in similar websites, the name of the particular form element (in this case "selectboxname") sometimes changes to something like "selectboxname1" or whatever.  Finding the name of this select box is pretty easy, so, I figured that putting this into a config file and reading it in would be pretty easy.  Unfortunately, I need to make a variable (object reference) with a reference to that particular type of form element.  

IE: Public SELECTBOXPATH As ??HTMLSelectElement??

The problems are as follows:
1) I don't know what element to set the SELECTBOXPATH to.  I'm guessing at HTMLSelectElement.

2) I don't know how to assign the dom path to the SELECTBOXPATH so that inside my code I can reference that path using the SELECTBOXPATH, something like:


instead of having to hardcode something like:


If anyone can please help, it would be much appreciated.


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close