I have the following built-in iframe
<iframe width="100%" height="400" src="reallylongpage.html" />
reallongpage.html has 2 #top and #bottom bindings
I want my iframe to load reallylongpage.html at the bottom of the page so I do
<iframe width="100%" height="400" src="reallylongpage.html#bottom" />
But this has an undesirable scroll effect like iframe AND of the parent page. The parent page should not scroll at all. This happens in Chrome and Firefox.
here is an example with full code
parent.html
<html> <body> <div style="padding:100 200;"> <iframe WIDTH="100%" HEIGHT="400" SRC="CHILD.HTML#BOTTOM" ></iframe> </div> <div>1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9<br>10<br>11<br>12<br>13<br>14<br>15<br>16<br>17<br>18<br>19<br>20<br>21<br>22<br>23<br>24<br>25<br>26<br>27<br>28<br>29<br>30<br></div> </body> </html>
child.html
<html> <body> <a name="top" href="#bottom">go to bottom</a><br> 1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9<br>10<br>11<br>12<br>13<br>14<br>15<br>16<br>17<br>18<br>19<br>20<br>21<br>22<br>23<br>24<br>25<br>26<br>27<br>28<br>29<br>30<br> <a name="bottom" href="#top">go to top</a> </body> </html>
here is what i want it to look right http://i38.tinypic.com/2gxh1f6.png
this is what i get instead incorrect http://i33.tinypic.com/2gy0t1x.png
source share