Jump to content

_IETagNameGetCollection click on an image button


AN9
 Share

Recommended Posts

Hi

Trying to write a script to click the image button but no luck, sure you fellows can give me a hand on this?

Local $oButtons = _IETagNameGetCollection($pIE, "img")

     For $oButton In $oButtons

          If StringStripWS($oButton.value, 4) = "download('abc.zip');" Then

             _IEAction($oButton, 'click')
          EndIf

     Next

 

<img src="../../image/download_icon.jpg" border="0" style="cursor: hand" onclick="download('abc.zip');">

Link to comment
Share on other sites

I sorted out guys, all good!

 Local $oButtons = _IETagNameGetCollection($pIE, "img")

    For $oButton In $oButtons

        ;MsgBox(64,'Found','Value: ' &$oButton.getAttribute("onclick")) 

    If $oButton.getAttribute("onclick") = "download('abc.zip');" Then
        _IEAction($oButton, 'click')
    EndIf

 

<img src="../../image/download_icon.jpg" border="0" style="cursor: hand" onclick="download('abc.zip');">

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...