<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>
解决方案 »
- Arg: Fraction out of range (0 to 1 allowed)js报错是啥意思?
- 谁有类似于Google在线日历的js代码
- js中如何把事件源作为参数传递。
- 请大家帮我看下!
- 如何在javascript中取得调用它的a的nodevalue?
- ExtJs收缩栏位置改变需求
- 请问在一个htm文件中如何用JS动态修改<head></head>里的<title>等属性
- 急:创建节点trElement,调用trElement.onclick="alert("ok")"怎么无效?如何动态添加它?
- 特殊格式符不能正常显示?
- 百度地图的JS API支持图片覆盖物吗?
- 聊天室的输入框怎么处理的???
- 聊天室的输入框怎么处理的???
<!--
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>