how to use window.open open a full size window in edge?

hi hi 40 Reputation points
2023-06-24T08:13:25.13+00:00

My computer resolution is 1920*1080.In edge, I want to use window.open open a new window which size is my computer resolution.I have been tried “fullscreen=yes” but it doesn't work.I tried to set “width=1920 height=1080” but it still have gaps at both sides.I don’t want a f11 mode fullscreen.Is there any way to solve the gaps problem?

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
2,160 questions
0 comments No comments
{count} votes

Accepted answer
  1. XuDong Peng-MSFT 10,181 Reputation points Microsoft Vendor
    2023-06-26T08:38:36.17+00:00

    Hi @hi hi,

    I have been tried “fullscreen=yes” but it doesn't work.I tried to set “width=1920 height=1080” but it still have gaps at both sides.

    As far as I know, due to browser security concerns, most modern browsers do not support opening new Popup pages in full screen.

    Just refer to this doc and check the Browser compatibility - fullScreen.

    I also tried screen.availWidth or MoveTo() function, and they all failed. So I'm afraid that this requirement cannot be implemented.

    Best regards,

    Xudong Peng


    If the answer is the right solution, please click "Accept Answer" and kindly upvote. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful