Can pages loaded into an iframe from another domain be scrolled via JavaScript?
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.
精彩评论