开发者

Can pages loaded into an iframe from another domain be scrolled via JavaScript?

开发者 https://www.devze.com 2023-01-13 01:33 出处:网络
If 开发者_如何学JAVAyes, could you please show me an example of how to do it?No. But you can put a large iframe in a small parent div that has CSS overflow, and then write to the div\'s scrollTop/scro

If 开发者_如何学JAVAyes, could you please show me an example of how to do it?


No. But you can put a large iframe in a small parent div that has CSS overflow, and then write to the div's scrollTop/scrollLeft.


No it's not possible. You have no control over an iframe from another domain for security reasons.

0

精彩评论

暂无评论...
验证码 换一张
取 消