I have an HTML layout based on tabs (say 5).
In each tab I load an iframe. The iframe contents are variations of one another that the user can compare by switching tabs.
How can I, in javascript, synchronize the scrolling of all iframes vertically and horizontally?
In other words, scrolling in one iframe should scroll by the same amount all other iframes, allowing the user to compare the same data.
Bonus points: iframe content is loaded only when the user opens the tab for the first time. So newly opened iframes should directly scroll to the same place as already opened iframes.
Thanks.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…