How to hide url in the popup window opened using window.open

前端 未结 3 480
一个人的身影
一个人的身影 2021-01-16 01:47

I am using below code to open a popup window in my page:

window.open(\"myPopupWindow.html\", \"_blank\", \"height=400, width=550, status=yes, toolbar=no, men         


        
3条回答
  •  悲&欢浪女
    2021-01-16 02:16

    Simple solution open new tab after that add url to location.href.

    window.open('','_blank').location.href = "url"
    

提交回复
热议问题