__proto和HTMLElement的扩展子类
__ptoto__:https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/Proto
关于HTMLElement的扩展子类
http://krook.org/jsdom/HTMLElement.html
var i=document.createElement('img');
var img=document.getElementById('img');
var inputbt=document.getElementById('inputbt');
var bt=document.getElementById('bt');
alert(img instanceof HTMLImageElement);//true
alert(inputbt instanceof HTMLInputElement);//true
alert(inputbt instanceof HTMLButtonElement);//false
alert(bt instanceof HTMLButtonElement);//true
alert(document instanceof HTMLDocument);//true
alert(document.documentElement instanceof HTMLHtmlElement);//true
<body>
<IMG id="img" SRC="http://drmcmm.baidu.com/media/id=PHnsrHbLPj6&gp=401&time=nHn1nHD3P1R3rf.jpg" ALT="PIC"/>
<BUTTON TYPE="BUTTON" onclick="a()" id="bt">ok</BUTTON>
<input TYPE="button" value="cancel" id="inputbt"/>
</body>