Link to home
Start Free TrialLog in
Avatar of exxos_uk
exxos_ukFlag for United Kingdom of Great Britain and Northern Ireland

asked on

VB6 webbrowser get JS variable ?

Using a webbrowser control in VB6, is it possible to obtain JS values ? for example if the page has a variable like  "var = xxx;"  could I somehow read "xxx" variable from VB ?  

I know I can read other items using id's and innerhtml , though is it possible to directly read variables ?
Avatar of BrianGEFF719
BrianGEFF719
Flag of United States of America image

No JavaScript is handled through the microsoft scripting runtime. You can however use the method you mentioned and parse the innerhtml to determine the initial value of the variable.
ASKER CERTIFIED SOLUTION
Avatar of experts1
experts1

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial