need to open a new tab via window.open. But when i try the below script, if the chrome or firefox browser blocked the popups, its not opening. How to tackle this situation. i.e. how to enable popup using javascript.

Here is my coding

var windowName = 'userConsole';
window.open('Redirect Url', windowName, 'width=1000, height=700, left=24, top=24
,scrollbars, resizable');