question

Archer-8618 avatar image
0 Votes"
Archer-8618 asked XuDongPeng-MSFT commented

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

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.

ms-edge
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

XuDongPeng-MSFT avatar image
0 Votes"
XuDongPeng-MSFT answered XuDongPeng-MSFT commented

Hi @Archer-8618 ,

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.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @XuDongPeng-MSFT
Thank you for your answer. According to your answer, we can conclude that although the current Edge-IE-mode supports channelmode, it cannot achieve the same effect as when IE uses channelmode, right?
Is this a bug?





0 Votes 0 ·

Hi @Archer-8618 , I think this is a reasonable result, because the browser does not support js to display in full screen.

How do I force a maximized window?
You cannot. All browser manufacturers try to make the opening of new secondary windows noticed by users and noticeable by users to avoid confusion, to avoid disorienting users.

For more details, you can refer to this document.

0 Votes 0 ·