1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
<html> <head> <script> function init() { var x = document.getElementById("d"); x.__proto__ = document.getElementById("f"); x.inputname; } </script> </head> <body onload="init();"> <div id="d"></div> <form id="f"><input name="inputname"></form> </body> </html>