Does Edge's IE compatibility mode also support the "channelmode" property of window.open?

Archer 21 Reputation points
2021-08-31T03:37:20.777+00:00

I need to open a maximized new window when making a website, but the window opened with "channelmode=yes" of window.open in Edge's IE compatibility mode is not a maximized window.
The size of the window is the same as the window opened without "channelmode=yes". Does Edge's IE compatibility mode do not support the "channelmode" attribute of window.open? Was it not supported at the beginning or was it not supported at the beginning of a certain version?
Thanks.

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

Accepted answer
  1. XuDong Peng-MSFT 10,186 Reputation points Microsoft Vendor
    2021-08-31T08:05:42.027+00:00

    Hi @Archer ,

    According to your description, I test the window.open function with channelmode. But the result I got is different from yours. The window opened in IE-mode is larger than the normal running Edge, although it is still not in full screen state. Therefore, I think it actually supports channelmode when using Edge-IE-mode, but the effect is not very satisfactory.

    If you need to maximize the opened window, you can use javascript to achieve a similar function, like this:

    var params = [  
            'height=' + screen.height,  
            'width=' + screen.width,  
            'channelmode=yes'  
            ].join(',');  
      
     var popup = window.open('http://www.google.com', 'popup_window', params);  
     popup.moveTo(0, 0);  
    

    Hope this can help.

    Best regards,
    Xudong Peng


    If the answer is helpful, please click "Accept Answer" and upvote it.

    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 additional answers

Sort by: Most helpful