<input id="btnSend" onclick="send();return false;" type="button" value="发送"
name="btnSend">js里面有:function send()
{
var txtContent = document.all("content").value;//文本输入内容
if(txtContent=="")return;
var user_to = document.all("userlist").value;//聊天对象
var textcolor = document.all("textcolor").value;// 颜色
var expression = document.all("expression").value;//表情
var isPublic = !(document.all("isSecret").checked);//是否密谈
//条用服务器端方法发送消息
Room.SendMsg(txtContent,user_to,txtcolor,expression,isPublic);
//更新聊天内容
var div = document.all("chatcontent");
div.innerHTML = ChatRoom.GetNewMsgString().value + div.innerHTML;
//清空输入框
document.all("content").value="";}
错误是send();没有对象,还有return false在函数之外
name="btnSend">js里面有:function send()
{
var txtContent = document.all("content").value;//文本输入内容
if(txtContent=="")return;
var user_to = document.all("userlist").value;//聊天对象
var textcolor = document.all("textcolor").value;// 颜色
var expression = document.all("expression").value;//表情
var isPublic = !(document.all("isSecret").checked);//是否密谈
//条用服务器端方法发送消息
Room.SendMsg(txtContent,user_to,txtcolor,expression,isPublic);
//更新聊天内容
var div = document.all("chatcontent");
div.innerHTML = ChatRoom.GetNewMsgString().value + div.innerHTML;
//清空输入框
document.all("content").value="";}
错误是send();没有对象,还有return false在函数之外
onclick="if(confirm('您确定要推出该聊天室吗?'))Close();" style="FONT-WEIGHT:bold;FONT-SIZE:14px;TEXT-ALIGN:center">
退出聊天 </label>
中的Close()也是缺少对象