焦点始终在弹出的页面上,关闭弹出页面时焦点回到主页

解决方案 »

  1.   

    你想把焦点设在哪个页面,就在哪个页面上写
    <script language=javascript>
    window.focus();
    </script>
      

  2.   

    A页面中有按钮点击弹出B页面,弹出后你只能在B页面操作,操作完后(保存或是取消等等)才能在A页面操作,说白了就是焦点的设置问题,大家帮我一下,我现在就遇到这样一个问题:弹出B页面后还能到A页面操作,我怎么才能实现弹出后弹出后你只能在B页面操作,操作完后(保存或是取消等等)才能在A页面操作
      

  3.   

    应该使用window.showModalDialog模式对话框
    private void Button5_Click(object sender, System.EventArgs e)
    {
      this.RegisterStartupScript("ShowForm","<script language=javascript>window.showModalDialog('w3.aspx' ,'','status=no;center=yes;help=no;dialogWidth=600px;dialogHeight=300px');window.location.href=window.location.href;</script>");
     //父页面重新刷新 }