我在showModalDialog里有个按钮,单击时刷新该页面,在firefox、chrome里就是正常的刷新,可是到ie9里就出了瑕疵了,第一次单击刷新时,是弹出个新的页面,而不是在原页面刷新的,再在新的页面里单击刷新时就没有此种情况了
window.onload = function () {
var ret = window.showModalDialog('B.html',null,'dialogWidth:630px;dialogHeight:530px;help:no;status:no;resizable:no');
} <body>
<input type="button" value='刷新' onclick="window.location.reload();"/>
</body>
请大伙赐教button
window.onload = function () {
var ret = window.showModalDialog('B.html',null,'dialogWidth:630px;dialogHeight:530px;help:no;status:no;resizable:no');
} <body>
<input type="button" value='刷新' onclick="window.location.reload();"/>
</body>
请大伙赐教button
<base target="_self" />
试试,最兼容的方法是,把这个页面放到iframe里面或者frameset里面,也就是外面包装一层