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.
my code is:
<!DOCTYPE html> <html> <body> <button onclick="openWin()">Create new window</button> <button onclick="moveWinTo()">Move new window</button> <button onclick="moveWinBy()">Move the new window by 75 * 50px</button> <script> var myWindow; function openWin() { myWindow = window.open("", "", "width=250, height=250"); } function moveWinTo() { myWindow.moveTo(150, 150); myWindow.focus(); } function moveWinBy() { myWindow.moveBy(75, 50); myWindow.focus(); } </script> </body>
[Edge] window.moveTo () does not work with EDGE
source share