WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

WinInet
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Select Links That Contain Java Script Code

Question:

I've been pretty successful with OLE automation of MSIE, but I wanted to look at the WinInet extender.

How do you "click a link" which calls a javascript function defined in the page's HTML using the WinInet extender?

< A href="javascript:changeTab('provider');" > <IMG height=38 
alt=Providers 
src="Welcome to Anthem_com_files/home_providers_off.gif" 
width=91 border=0 > < /A >

Answer:

For JavaScript you get to figure out the JavaScript and write code to emulate that, so see ifthe web page provider has given a non-javascript version of the link.

The Javascript is not processed by the WinInet extender.

Thus, if you want the javascript processed, the the OLE automation of MSIE method is recommended.


Article ID:   W16379
File Created: 2017:07:28:13:58:49
Last Updated: 2005:02:18:12:20:07