界面刷新问题
请问怎么在子界面刷新父界面的内容(只是用超链接弹出的一个子界面,父界面没有传过来值)
------解决方案--------------------摸态:
模台窗口调用父窗口函数:
function checkpass($)
{
var _pwin = window.dialogArguments;
if(_pwin!=undefined)
{
var _codeStr = "funccheck( "+ppid+ ", "+position+ ", "+$+ "); "
_pwin.execScript(_codeStr, "javascript ");
}
}
父窗口。s刷新
window.opener.location.href=window.opener.location.href
------解决方案--------------------用js实现
例如点击按钮刷新主页面(例子)
//从新刷新
<INPUT type= "button " value= "Button " onclick= "window.opener.location.reload() ">
//直接给网址
<INPUT type= "button " value= "Button " onclick= "window.opener.location.href= '网址 ' ">