Yes true. It’s usually bad practice to spawn multiple modals.
As @rpkamp said (and me being from a time when there was only new window pop ups to consider) I generally consider a ‘popup’ to be a new browser window rather than an html element so z-index is not a consideration there.
No, not quite, target=_blank opens a new window by default. It’s only if the user has already specified in their own browser controls that any new windows should open in a tab otherwise they just spawn new windows as per normal.
Yes modern browsers probably do default to tab but I have no firm confirmation for this and of course the user can set what they prefer anyway. Target=_blank just means open a new window. The individual browser settings decide if that is a tab or not.
We never had tabs when I first started so a new window was always spawned.
Hi @bendqh1, you might also have a look at the HTML dialog element:
The still considered experimental but supported by all major browsers… in case of doubt there are polyfills available though. Anyway you can control whether it should be modal or not, and it’s certainly less annoying than open another window. ^^