function ShowDialog(frmWin,url, width, height, optValidate) {if (optValidate) {
//if (!validateMode()) return;
}
alert("start");
//var arr = showModalDialog(url+"filename=f1.asp", window, "dialogWidth:" + width + "px;dialogHeight:" + height + "px;help:no;scroll:no;status:no");
var arr = showModalDialog(url, window, "dialogWidth:" + width + "px;dialogHeight:" + height + "px;help:no;scroll:no;status:no");
alert("end");
}<input type="button" onClick="ShowDialog('display.jsp',800,600,true)" name="test1">
我想问调用display.jsp时,如何刷新这个JSP页面。

解决方案 »

  1.   

    使用showModalDialog装载这个页面的时候不就是刷新吗?你要是想再单独刷新的话用
    <meta http-equiv="refresh" content="20; url=http://想要刷新的页面.htm">
      

  2.   

    showModalDialog()功能相当于alert(),是自动刷新的。
    -------------------------------------
    向myth822(↑八月的吟游者↑) ( ) 学习,^-^
    你要是想再单独刷新的话用
    <meta http-equiv="refresh" content="20; url=http://想要刷新的页面.htm">
      

  3.   

    在ShowDialog方法的alert("end");后面添加location.href='display.php';
      

  4.   

    楼上:呵呵我也要向myth822(↑八月的吟游者↑) ( ) 学习
      

  5.   

    那为什么我的回传值。总是一个值呢?我手动刷新一下这个JSP文件,值才变成新的。