// 刷新多级父页面
javascript:window.opener.opener.location.reload();
// 刷新父页面并关闭
javascript:window.opener.location.reload();window.close();
// 在当前页面中打开新链接
javascript:window.location.href="abc.aspx?Name=<%= Name %>"
// 在新窗口中打开链接
javascript:CenterWindow('abc.aspx?Age=<%# Eval("Age") %>', '650', '450', 'resizable=1,scrollbars=1')
/*
子页面嵌套在父页面的框架中时,
会出现不能完全显示的问题,解决方法如下。
contentWindow 属性指 frame 或者 iframe 所在的 window 对象,
document.body.scrollHeight 属性指 页面内容的实际高度, 可以小于 clientHeight.
*/
---- js 代码
// 获取页面内容的实际高度, 并赋值给框架高度属性
javascript:window.parent.document.getElementById('show').style.height = window.parent.document.getElementById('show').contentWindow.document.body.scrollHeight + 'px'
---- 父页面中的框架
<iframe id='show' name='show' style="position:relative; width:100%;" οnlοad="document.getElementById('show').style.height = show.document.body.scrollHeight + 'px'" scrolling="no" marginheight="0" marginwidth="0" frameborder="0" >
</iframe>