clicking onclick link with in a frame
I have a link I am trying to click via applescript do javascript
I can return the frames html by doing
tell application "Safari"
do JavaScript
"document.getElementById('iframesearch').contentDocument.getElementById('frmAccountList').innerHTML"
in document 1
end tell
the html returned contains the link link I want to click/fire
<span id="SWGrdAccSearch_ctl06_lblAsterix"> </span>
<a onclick="javascript:return getDefaultAccount('John
Doe','0890','0','0');" id="SWGrdAccSearch_ctl06_lnkAccount"
href="javascript:__doPostBack('SWGrdAccSearch
$ctl06$lnkAccount','')">123456</a>
how can I get his link to launch/fire?
Any and all help deeply appreciated.
Fnews-brouse 1.9(20180406) -- by Mizuno, MWE <mwe@ccsf.jp>
GnuPG Key ID = ECC8A735
GnuPG Key fingerprint = 9BE6 B9E9 55A5 A499 CD51 946E 9BDC 7870 ECC8 A735