0

我有以下代码

function submitSelf() { 
  var adhocMainJspPane = getFrameObject('adHocMainJSPPane',openerObject);
  document.Form.action="something";
  document.getElementById("tabID").value = adhocMainJspPane.cubeTreeFrame.document.getElementById("arePropertiesChanged").value;
  document.selfCloseForm.target="advancedPropertiesJSPPane";
  var tmpSum = getTmpSum();     
  document.selfCloseForm.action += "&tmpChk="+tmpSum;
  document.selfCloseForm.method="post";
  document.selfCloseForm.submit();
}

脚本中没有其他提交。Html 是

<BODY onload="submitSelf();">
  <FORM name="selfCloseForm" id="selfCloseForm" action="" method="post">
    <INPUT type="hidden" id="tabID" name="tabID" value="">
    <INPUT type="hidden" id="fromPage" name="fromPage" value="">
    <INPUT type="hidden" id="elementNo" name="elementNo" value="">
    <INPUT type="hidden" id="elementName" name="elementName" value="">
    <INPUT type="hidden" id="cubeAction" name="cubeAction" value="">
    <INPUT type="hidden" id="arePropertiesChanged" name="arePropertiesChanged" value="">
  </FORM>
<BODY>  

以上为在 SAFARI 浏览器上提交了两次。我怎样才能阻止它这样做。

4

0 回答 0