I have following code in my Next.js function. I want the url to be opened in the same tab but in a new smaller window.
window.open(url, '_blank', features)
where features are,
const features = `width=${newWindowWidth}, height=${newWindowHeight}, top=${top}, left=${left}`;
This works well on mac when in minimised browser mode (same on Firefox, safari, chrome). but as you switch to maximised browser mode. it suddenly opens the url in new tab. How to persist the behaviour of opening in a small new window in the same tab?
I know it's a duplicate here. but no solution/answers are there. Thus, asking it again.