iscjm, I tested this at the w3schools link both in Try It Now and other places and it works fine. HOWEVER due to differences in browsers, browser settings and security suites PLUS pop-up blockers you can NEVER be sure this will work.
In case you wonder why, it's all because the spammers and others overused pop-ups, pop-unders and more so the browsers and the people fought back. I can't guess why you need this as you didn't say but at least you know why it's not something that you can count on and there is NO REASON to fix it since the spammers, advertisers and malware makers would only take advantage of it again.