一个有关聊天室的程序出错,谁愿意帮忙看看?
<input type="button" name="schat" value="<%if Application("userinroom")=0 then%>进去等人<%else%>开始聊天<%end if%>" style="font-size: 12" onClick="openWin()">
点击按纽(“进去等人”或者“开始聊天”)后打不开聊天室窗口,谁能告诉我为什么?
调用的是下面这个函数(openwin()),大家看看能执行吗?
<script language="javascript">
function openWin() {
chitchat=window.open('chat/chitchat.asp','chitchat','Status=yes,scrollbars=yes,resizable=yes')
chitchat.moveTo(0,0)
chitchat.resizeTo(screen.availWidth,screen.availHeight)
chitchat.outerWidth=screen.availWidth
chitchat.outerHeight=screen.availHeight
}
</script>