<Script Language="JavaScript">
<!--
function SendMsg() {
TheForm.submit();
TheForm.Msg.value="";
}
-->
</Script>
<Form Action="" Method="Post" Name="TheForm">
<Input Type="Text" Id="Msg">
<Input Type=Button Value="发言" OnClick="SendMsg()">
</Form>
<!--
function SendMsg() {
TheForm.submit();
TheForm.Msg.value="";
}
-->
</Script>
<Form Action="" Method="Post" Name="TheForm">
<Input Type="Text" Id="Msg">
<Input Type=Button Value="发言" OnClick="SendMsg()">
</Form>
<!--
function go() {
if (Theform.message.value=="") {
alert ("你没发言");
return false;
}else {
TheForm.message.value="";
return true;
}
}
-->
</Script>
<Form Action="" Method="Post" Name="TheForm" onsubmit="return go()">
<Input Type="Text" id="message">
<Input Type="submit" Value="发送">
</Form>