<body>
<table border="1" width="100%" height="100%">
<tr>
<th><iframe id="i1" width="100%" height="100%"src="/wordpress"></iframe></th>
<th><iframe id="i2" width="100%" height="100%"src="/wordpress"></iframe></th>
</tr>
</table>
</body>
I have defined two iframes in the same domain. What is want to do is when i scroll iframe with id=”i1″, the iframe with id=”i2″ should get scrolled automatically. How can i do this using javascript?
To solve your problem, please find code below
You can execute it, and test it directly using this link http://jsfiddle.net/CF5Lp/1/
Hope this helps