1704660.html (450B)
1 <html> 2 <head> 3 <script> 4 function test() { 5 var ifr = document.getElementsByTagName("iframe")[0]; 6 var form = ifr.contentDocument.getElementsByTagName("form")[0]; 7 form.onsubmit = function() { 8 ifr.remove() 9 } 10 form.lastChild.click(); 11 } 12 </script> 13 </head> 14 <body onload="test()"> 15 <iframe srcdoc="<form><input name=f type=file><button></button></form>"></iframe> 16 </body> 17 </html>