document.register.submit()问题
js函数
function sendsms()
{
var http = new ActiveXObject("Microsoft.XMLHTTP");
http.open("GET","http://...../..../.........php?destMobile="+document.register.mobilecode.value+"&content="+document.register.textarea.value,false);
http.send();
document.register.submit()
}
1.asp
<form name="register" method="post" action="2.asp"align="right">
....
....
<input name="button" type="button" onClick="sendsms()"value="发送短信">
....
....
</form>
2.asp
为什么点击"发送短信"没有反应,应该执行sendsms()再跳转到 2.asp才对啊
还是这句document.register.submit() 不是表单提交