JavaScript: How to move a window to a specified location in the Microsoft EDGE browser?

According to Microsoft EDGE Release Update :

Window objects associated with frames are no longer affected by moveTo, moveBy, resizeTo or resizeBy

In this case, how can we move the window to the right place using JavaScript?

My code that works in all browsers IE 11, Firefox, Chrome, but not with EDGE.

var newWindow = window.open(url,'name','width=250,height=150');
newWindow.moveTo(800,300);  // this doesn't work with EDGE

Edit: I tried setting the position directly on window.open, but did not have time

var newWindow = window.open(url,'name','width=250,height=150,left=800,top=300');// This also doesnt work with EDGE
+4
source share

Source: https://habr.com/ru/post/1607219/


All Articles