file_iframe_sandbox_c_if3.html (792B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>Test for Bug 341604</title> 6 <script src="/tests/SimpleTest/EventUtils.js"></script> 7 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 8 9 </head> 10 <script type="text/javascript"> 11 function doStuff() { 12 dump("*** c_if3 has loaded\n"); 13 // try and submit the form - this should succeed 14 document.getElementById('a_form').submit(); 15 } 16 </script> 17 <body onLoad="doStuff()"> 18 I am sandboxed but with "allow-scripts allow-forms" 19 20 <form method="get" action="file_iframe_sandbox_form_pass.html" id="a_form"> 21 First name: <input type="text" name="firstname"> 22 Last name: <input type="text" name="lastname"> 23 <input type="submit" onclick="doSubmit()" id="a_button"> 24 </form> 25 </body> 26 </html>