onclick='return newwin(this.href)'这句是什么意思
对这句不是很清楚,请大伙给解释一下
function newwin(url){
var newwin=window.open(url,"newwin","");
newwin.focus();
return false;
}
</Script>
上面return返回false,有时候是true,请问是什么意思?
<%
If Session("Passed") = True Then
Response.Write "登陆成功," & Session("UserName") & ",欢迎关临<br><br>"
If Session("UserName") = "Admin" Then
Response.Write "<a href=UserIdList.asp>用户管理</a> <a href=PwdChange.asp?UserId=" & Session("UserId") & "onclick=""return newwin(this.href)"">修改密码</a> <a href=logout.asp>退出登陆</a>"
Else
Response.Write "<a href=PwdChange.asp?UserId=" & Session("UserId") & "onclick=""return newwin(this.href)"">修改密码</a> <a href=logout.asp>退出登陆</a>"
End If
End If
%>
[此贴子已经被作者于2005-4-26 15:39:26编辑过]