I tried this apple script with Script Editor. But it doesn't take me to the page where it usually goes when it's clicked manually. It seems doing nothing :(
do JavaScript "doCallerPage('FORM_PAGE', 'FR_AN', '/as/an/Check.do');return false;" in document 1
The Link in HTML source
<a id="LNK0001" href="javascript:void(0);" onclick="doCallerPage('FORM_PAGE', 'FR_AN', '/as/an/Check.do');return false;">Check Page</a>
JavaScript Function
function doCallerPage(formName, target, actionPath, _action, _t) {
if (actionPath == "") {
return false;
}
if (target && target != "_self") {
checkSubWindow(target);
}
if (document.FORM_PAGE.ctrlflg.value == "") {
if (_action) {
document.FORM_PAGE._ACTION.value = _action;
}
else if (!_action) {
document.FORM_PAGE._ACTION.value = "";
}
}
if (_t) {
document.FORM_PAGE._T.value = _t;
}
else {
document.FORM_PAGE._T.value = "";
}
document.FORM_PAGE.action = actionPath;
document.FORM_PAGE.target = target;
document.FORM_PAGE.submit();
document.FORM_PAGE._P.value = "";
document.FORM_PAGE._T.value = "";
document.FORM_PAGE._ACTION.value = "";
document.FORM_PAGE.ctrlflg.value = "";
}