|
1 <!-- |
|
2 Inner frame for test of bug 385434. |
|
3 https://bugzilla.mozilla.org/show_bug.cgi?id=385434 |
|
4 --> |
|
5 <html> |
|
6 <head> |
|
7 <script type="application/javascript"> |
|
8 function hashchange() { |
|
9 parent.onIframeHashchange(); |
|
10 } |
|
11 |
|
12 function load() { |
|
13 parent.onIframeLoad(); |
|
14 } |
|
15 |
|
16 function scroll() { |
|
17 parent.onIframeScroll(); |
|
18 } |
|
19 </script> |
|
20 </head> |
|
21 |
|
22 <body onscroll="scroll()" onload="load()" onhashchange="hashchange()"> |
|
23 <a href="#link1" id="link1">link1</a> |
|
24 <!-- Our parent loads us in an iframe with height 100px, so this spacer ensures |
|
25 that switching between #link1 and #link2 causes us to scroll --> |
|
26 <div style="height:200px;"></div> |
|
27 <a href="#link2" id="link2">link2</a> |
|
28 </body> |
|
29 </html> |