onclick事件的问题
function submitb1(){
window.document.formchat.action="chatbodyAction" ;
window.document.formchat.target="chatcontentpage";
window.document.formchat.submit();
window.document.content.value="";
}
我在点击formchat的button后,调用submitb1()函数,但是window.document.content.value="";这句总是先执行,然后提交后得到的content.value总是为空,怎么解决,谢谢