bug277890_iframe.html (482B)
1 <html> 2 <head> 3 <title></title> 4 <script src="/tests/SimpleTest/EventUtils.js"></script> 5 <script type="text/javascript"> 6 function submitIframeForm () { 7 document.getElementById('b').submit(); 8 document.getElementById('thebutton').disabled = true; 9 } 10 </script> 11 12 </head> 13 <body onload="sendMouseEvent({type:'click'}, 'thebutton')"> 14 15 <form method="get" action="bug277890_load.html" id="b"> 16 <button onclick="submitIframeForm()" id="thebutton">Submit</button> 17 </form> 18 19 </body> 20 </html>