实现载入某界面时,仅仅在第一次干某件事情,以后再刷新当前界面,不再做当前事情:
<script>
attachEvent("onload",function(){
if (parent.document.body.preBusinessid){
if (parent.document.body.preBusinessid == request("businessid")) return;
}
parent.document.body.preBusinessid = request("businessid");
var newbtn = document.all("bitsMTaddnewlink1");
if(newbtn) newbtn.click();
});
</script>