1.htm
---
<html>
<a href="#" onclick="window.showModalDialog('2.htm');location.reload();">2.htm</a>
</html>
2.htm
---
<html>
<a href="#" onclick="if (window.showModalDialog('3.htm')!=null) window.close();">3.htm</a>
</html>3.htm
---
<html>
<input type=button onclick="window.returnValue=1;window.close();" value=OK >
<input type=button onclick="window.close();" value=Cancel >
</html>
---
<html>
<a href="#" onclick="window.showModalDialog('2.htm');location.reload();">2.htm</a>
</html>
2.htm
---
<html>
<a href="#" onclick="if (window.showModalDialog('3.htm')!=null) window.close();">3.htm</a>
</html>3.htm
---
<html>
<input type=button onclick="window.returnValue=1;window.close();" value=OK >
<input type=button onclick="window.close();" value=Cancel >
</html>
1.html
<html>
<script type="text/javascript">
function editit()
{
page="2.html"
window.open (page,'11','width=560,height=360')
}
</script>
<a href="#" onclick="editit();">2.htm</a>
</html>2.html<html>
<form action="3.html">
<input type="submit">
</form>
</html>3.html<html>
<a href="#" onclick="window.opener.location.reload(true);window.close();">close</a>
</html>