开发者

Controlling scrolling in iframe

Can you help me with my problem regarding iframe because whenever the iframe is scrolled till end, and the user clicks a control inside the page within iframe, and page content is on the top of the page, the user needs to scroll up the iframe just to see the content.

Are there any properties that I can set or code that I can do so that the iframe scroll bar go开发者_开发技巧es back to top whenever an event is triggered inside the form?


Depending on the platform and browser you use you could call on the iframe window (triggered by an event):

window.scrollTo(0, 0);
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜