简体   繁体   中英

why is window.open(url) opening new window instead of tab

I am calling window.open(url) and Normally that would just open a new tab. However, On this particular page i am developing, it's opening a while new small window.

i've also tried window.open(url, "_blank")

Does anyone know what would force the window to open a new window instead of a new tab.

thanks.

The behavior is completely up to the browser and how it chooses to handle it. Most browsers open a new tab when _blank is used. There is nothing that can be done programmatically to control the behavior.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM