Javascript to open popup window and disable parent window

后端 未结 5 1233
执笔经年
执笔经年 2020-11-28 08:21

I want to open a popup window and disable the parent window. Below is the code that I am using;

function popup()
{

    popupWindow = window.open(\'child_pag         


        
5条回答
  •  南笙
    南笙 (楼主)
    2020-11-28 09:00

    To my knowledge, you cannot disable the browser window.

    What you can do is create a jQuery (or a similar kind of ) popup and when this popup appears your parent browser will be disabled.

    Open your child page in popup.

提交回复
热议问题