Skip to content

Alternative to

My question is to find an alternative for the command because it is being blocked by the ad-blocker because in my webpage it is supposed to automatically open a new window with only 1 tab. I tried the command

with a length and width dimension to force it to open in a new window not in just as a new tab…

and it worked for me by opening a new window with only 1 tab.

I am not sure whether this just works on my device or if this is an accepted alternative.

My reasoning is that since in DOM, window is the highest level of hierarchy, typing would be just as effective as since document is a child node of window.

Can anybody share if this will work on other devices on major browsers like Chrome Firefox IE…?

Also is my reasoning correct?

Thanks guys!



You should be using some kind of custom made popups and dialogue like