function sea()
{
window.open('search.asp','sea','height=150,width=460,top=0,left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no')
}
<a href="#" onclick="sea()">查找留言</a>
这是弹出窗口的,代码。
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<Script language="javascript">
function woo()
{
if(document.form1.ttt.value=="")
{
alert("关键字不能为空")
return false
}
return ture
}
</Script>
<link rel="stylesheet" type="text/css" href="css/my.css">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>查找留言</title>
</head>
<body>
<form name="form1" method="post" action="searchchk.asp" onsubmit="return woo()">
<table width="413" height="88" border="0" align="center" cellpadding="0" cellspacing="0" background="image/back295.gif" class="k1">
<tr>
<td colspan="3"> </td>
</tr>
<tr>
<td width="79" height="21"> </td>
<td width="163"><input name="ttt" type="text" onfocus='document.form1.ttt.value=""' value="请输入关键字" size="15"></td>
<td width="171"><select name="search" size="1">
<option>按标题查找</option>
<option>按姓名查找</option>
</select>
<input type="submit" name="Submit" value="查找"></td>
</tr>
<tr align="center">
<td colspan="3"><a href="#" onclick="window.close()">关闭窗口</a> </td>
</tr>
</table>
</form>
</body>
</html>
这是查找的页面,要怎么加啊,谢谢了