How do identify whether the window opened is a pop up or a tab?

前端 未结 3 834
陌清茗
陌清茗 2020-12-19 16:24

I have been facing a problem.I am able to open a window using window.open method.If I specify the height and width of the window,it opens as a pop up window.If no parameters

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-19 17:13

    I'm not quite sure what you mean in your question but from what I understand, you might want to use the HTML target attribute:

    _blank  Opens the linked document in a new window or tab
    _self   Opens the linked document in the same frame as it was clicked (this is default)
    _parent     Opens the linked document in the parent frame
    _top    Opens the linked document in the full body of the window
    

    framename Opens the linked document in a named frame

    Source: http://www.w3schools.com/tags/att_a_target.asp

提交回复
热议问题