Or does it strictly depend on the web browser settings?
No. Browsers do not currently distinguish between tabs and windows in their JavaScript APIs.