I am trying to find a link on a web page but I am unable to find it with VBSCRIPT but cannot find it. So I am now trying to find out how to run Javascript function. Either way I cannot click the link or run the javascript function. Help?
I have tried several different things to find it the link but i can't seem to find it.
Here is the Code I have tried.
I tried this and it gave me zero url's.
Here is the html code:
I also have tried to run the javascript code with this:
But this doesn't do anything...
Can anyone shed some light on this?
CHAOS, PANIC, & DISORDER - my work here is done.
I have tried several different things to find it the link but i can't seem to find it.
Here is the Code I have tried.
Code:
set urls = ie.document.all.tags("a")
For x = 0 to (urls.length)-1
wscript.echo urls(x).innerHTML & " : " & urls(x).href
Next
wscript.echo "Number of URLs:", urls.length, vbNewline
I tried this and it gave me zero url's.
Here is the html code:
Code:
<a href=javascript:doSubmit('lnvprl','') title="Display VPS Printer List">VPS Printer List</a>
I also have tried to run the javascript code with this:
Code:
ie.navigate2("javascript:doSubmit('lnvprl','')")
But this doesn't do anything...
Can anyone shed some light on this?
CHAOS, PANIC, & DISORDER - my work here is done.