Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is there any limit for using window.open() in javascript

Tags:

javascript

Is there any limit of using window.open("URL"); in JavaScript?
when I tried to open three windows using window.open("URL") after opening the second window the third window didn't open separately but it just refreshed the contents of first window and showed the contents of the third window in there.

like image 366
Nagri Avatar asked Sep 04 '26 13:09

Nagri


1 Answers

Using "_blank" as the target window should open a new window every time (just like with <a href="url" target="_blank">link</a>). For example:

window.open("URL", "_blank");

But opening multiple windows can be subject to various pop-up blocking features and plugins.

like image 185
rsp Avatar answered Sep 07 '26 02:09

rsp



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!