Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is opening a web page in a new tab considered a popup?

When a website visitor clicks on a link, is opening that link contents in a new tab considered a popup? OR a popup must be in a new floating window?

And If this is not considered as popup, What about opening the link contents in a new tab + opening another URL in the original tab?

Example: what happens in coupons websites, when you click " show coupon ", you find a new tab opened showing the coupon, and the original tab redirects to another URL ( may be affiliate URL).

If this considered as popup, so why doesn't google chrome prevent it inspite of setting ( popup : not allowed )

like image 422
darroosh Avatar asked Oct 28 '25 04:10

darroosh


1 Answers

The term "popup" can mean any of the following depending on who you are talking to and the context:

  • A new window/tab
  • A new window of a specific size
  • A chunk of DOM added to the page which overlays other content

what happens in coupons websites, when you click " show coupon ", you find a new tab opened showing the coupon, and the original tab redirects to another URL ( may be affiliate URL).

If this considered as popup, so why doesn't google chrome prevent it inspite of setting ( popup : not allowed )

The rules for blocking new windows are quite complex, but the simplified version is:

You can open one new window with JS in response to the user doing something (usually a click).

like image 171
Quentin Avatar answered Oct 30 '25 19:10

Quentin



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!