Javascript pop-up window focus issue

前端 未结 2 524
耶瑟儿~
耶瑟儿~ 2021-01-14 09:09

I want to create a \"popup window\" that get focus each time the button is clicked. The function below executes fine from an onclick event but does not execute

2条回答
  •  忘掉有多难
    2021-01-14 09:48

    On the page load you can show this popup

    $(document).ready(function () {
        window.open("URL","Hello","width=500,height=500,scrollbars=yes")
    }); 
    

提交回复
热议问题