<html>
<head>
<title>My HTML application</title>
<HTA:APPLICATION
id="frames"
border="thin"
caption="yes"
icon="http://www.google.com/favicon.ico"
showintaskbar="yes"
singleinstance="yes"
sysmenu="yes"
navigable="yes"
contextmenu="no"
innerborder="no"
scroll="auto"
scrollflat="yes"
selection="yes"
windowstate="normal" />
</head>
<frameset rows="60px, *">
<frame src="topo.htm" name="topo" id="topo" application="yes" />
<frame src="http://localhost/nph-psf.exe?HOSTID=AD&ALIAS=" name="conteudo" id="psyncLink" application="yes" />
</frameset>
</html>
In my frameset, I have a webpage loading. I can’t edit the code that is displayed from
http://localhost/nph-psf.exe?HOSTID=AD&ALIAS=
The page has a button that needs to be clicked in order to proceed. I want to automate that with my HTA application so the button is automatically clicked for the user upon page load.
The code can be in VBScript or JavaScript. The key is to have the button be clicked PROGRAMATICALLY so the user doesn’t have to.
The button that I want to click on has the following line of HTML code
<INPUT border=0 type=image alt="Use a password" name="SUBMIT-password.pss" src="docs/pics/en-us/useapassword_button.jpg">
One way;