You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
By clicking “Sign up for GitHub”, you agree to our
terms of service
and
privacy statement
. We’ll occasionally send you account related emails.
Already on GitHub?
Sign in
to your account
An iframe can cause its parent window to scroll to another position, for example using
document.body.scrollIntoView();
There seems to be no way to override (prohibit) this behaviour under the present w3c specification. StackOverflow user Kaiido has
suggested
a solution that exploits a
bug
in Chrome, which raises the question as to whether a CSS solution to prevent cross-source scrolling would be possible.
Further details at the
StackOverflow answer
.