board1.jsp
改为
<input type="button" value="查看留言" name="B3" onClick="window.showModalDialog('board3.jsp','','width=700px,height=320px,left='+(screen.width/2-300)+'px,top='+(screen.height/2-160)+'px,unadorned=off,scrollbars=yes,resizable,status=no')"> </p>
改为
<input type="button" value="查看留言" name="B3" onClick="window.showModalDialog('board3.jsp','','width=700px,height=320px,left='+(screen.width/2-300)+'px,top='+(screen.height/2-160)+'px,unadorned=off,scrollbars=yes,resizable,status=no')"> </p>
再试试把打开窗口写成函数
<script language="JavaScript">
function openurl()
{
window.open("board3.jsp","sample","directions=no,toolbar=no,status=no,menubar=no,resizable=yes,height=600,width=800");
window.opener="meizz";//这两句你看情况
window.close();
}
</script><input type="button" value="察看留言" name="B3" onClick="return openurl();">