I am trying to create a new window using javascript but it create a new tab instead of a new window
const raiseInvoiceClicked = () => {
let params = `scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no,
width=0,height=0,left=-1000,top=-1000`;
const newWindow = window.open("http://localhost:3000", '_blank', "height=200,width=200", 'noopener,noreferrer')
if (newWindow) newWindow.opener = null
}
2
Answers
will open google in new window and size will be 200×200