How does JS click on a link and the window that pops up is full-screen open, the kind that is maximized?

< body >
Jump
< / body >
< script >
function openNew (url) {

var can = `top=0, left=0,
titlebar=no,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no,channelmode`;
var win = window.open(url, "", can);
win.resizeTo(screen.width, screen.height)

}
< / script >
this is my code, but opening a new page is not maximizing, it has a border, how can it be maximized?

Feb.17,2022

look here http://www.w3school.com.cn/js.

clipboard.png
window.open (url,'','fullscreen=1');
fullscreen can control full screen

Menu