How to make IFRAME listen to scroll events as parent when click event within parent iframe is triggered
问题 I have two iframes in an html page <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> I am giving click event to "a" tag to change the href so that when any link within that iframe is clicked and src of iframe with id "i1" changes the src of second iframe also change subsequently and both iframe have the same page view. $(