想写一个语句判断是否删除,如果是,则提交——>调用__doPostBack
最好用VbScript写,我用VBScript可以写判断,但是不会写调用,似乎不支持__doPostBack这种下划线阿关键是不明白eventTarget.split("$").join(":");这一句式干嘛的阿
script language="javascript">
<!--
function __doPostBack(eventTarget, eventArgument) {
var theform;
if (window.navigator.appName.toLowerCase().indexOf("netscape") > -1) {
theform = document.forms["Form1"];
}
else {
theform = document.Form1;
}
theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
theform.__EVENTARGUMENT.value = eventArgument;
theform.submit();
}
// -->
</script>