user1432882
user1432882

Reputation: 1152

HTML window.scroll method only works correctly on localhost

I have tried calling parent.scroll & parent.window.scroll to scroll the browser window from a child frame. However,

Localhost testing: Works in IE, Firefox, & Chrome. Production/Non-localhost: Works only in Chrome.

Can you guys tell me why this might be the case?

Upvotes: 0

Views: 251

Answers (1)

Duran
Duran

Reputation: 38

I think you might just want to use window.scroll(X, Y), or maybe window.scrollBy(X, Y). In both cases omitting "parent"

If I am right and you are trying to scroll to specific other section the using scrollBy, or scrollTo, could be a good way to go.

Upvotes: 1

Related Questions