我用脚本编辑器尝试了这个苹果脚本。但是,当手动单击它时,它不会将我带到通常去的页面。似乎什么都不做:(
do JavaScript "doCallerPage('FORM_PAGE', 'FR_AN', '/as/an/Check.do');return false;" in document 1
HTML 源代码中的链接
<a id="LNK0001" href="javascript:void(0);" onclick="doCallerPage('FORM_PAGE', 'FR_AN', '/as/an/Check.do');return false;">Check Page</a>
JavaScript 函数
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 = "";
}