Answer the question
In order to leave comments, you need to log in
How to prevent WebView from changing window position on the screen?
The situation is as follows:
There is a window with a WebView, the Vkontakte authorization page is loaded into the WebView (display=popup).
The JavaScript of this page has a code that moves the popup to the middle of the screen:
window.moveTo(Math.floor((screen.width - 620) / 2), Math.floor((screen.height - box.offsetHeight - 190) / 2));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question