父窗口father.jsp
<html >
<head>
<title>父窗口</title>
<script>
function registerJump() {
var returnValue = window.opendlg("son.jsp",600,400);
if(returnValue == 'ok') {
window.location.reload();
}
}
</script>
</head>
<body>
<form name=”form”>
<input type=”text” name=”text” ><br/>
                <input type=”button” name=”submit” value=”submit”  onClick=”j ump();”/>
</form>
</body>
</html>子窗口son.jsp
<html >
<head>
<title>子窗口</title>
</head>
<body onunload=”window.returnValue=’ok’ ”>
<form name=”form2”>
<input type=”text” name=”text” ><br/>
<input type=”submit” name=”submit” value=”submit” />
</form>
</body>
</html>关闭子窗口后,父窗口就会刷新.