日期:2014-05-19  浏览次数:20547 次

如何用JS在当前窗体中打开新窗体?
<script   language   =   "javascript ">
                function   insert_azsq()
                {
                          window.open( "azsq.php ");
                }         </script>

上面那样是打开一个新窗口,要怎么改一下才能在当前窗体中打开?

------解决方案--------------------
<script language= "javascript " type= "text/javascript ">

function ViewMenu(MenuID)
{
var ReturnValue = window.showModalDialog( "Menu.aspx?ID= "+MenuID,null, "status=0;DialogWidth=520px;DialogHeight=380px; ");
}
</script>
------解决方案--------------------
window.location.href= "azsq.php ";
------解决方案--------------------
window.location =
------解决方案--------------------
window.location.href= "azsq.php ";

------解决方案--------------------
top.location.href= "azsq.php "