Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / content / test / data / render_frame_host / focus.html
blob08fd9d5fb15d2226890220aac77021848e4d81a8
1 <!DOCTYPE html>
2 <html>
3 <head>
4 </head>
5 <body>
6 <iframe name='frame1' src='data:text/html,<input><div>frame1</div>'></iframe>
7 <iframe name='frame2' src='data:text/html,<input><div>frame2</div>'></iframe>
8 <iframe name='frame3' src='data:text/html,<iframe%20name=%27frame4%27%20src=%27data:text/html,<input><div>frame4</div>%27></iframe>'></iframe>
9 </body>
10 <script>
11 function focusframe1() {
12 frames[0].focus();
14 function focusframe2() {
15 frames[1].focus();
17 function focusframe4() {
18 frames[2][0].focus();
20 function detachframe(i) {
21 var iframes = document.getElementsByTagName('iframe');
22 iframes[i - 1].parentNode.removeChild(iframes[i - 1]);
24 </script>
25 </html>