HTML DOM id ÊôÐÔ
¶¨ÒåºÍÓ÷¨
id ÊôÐÔ¿ÉÉèÖûò·µ»ØÖØÖð´Å¥µÄ id¡£
Óï·¨
resetObject.id=id
ʵÀý
ÏÂÃæµÄÀý×Ó¿É»ñµÃ³öÖØÖð´Å¥µÄ id£º
<html> <head> <script type="text/javascript"> function alertId() { alert(document.getElementById("reset1").id) } </script> </head> <body> <form> <input type="reset" id="reset1" onclick="alertId()" /> </form> </body> </html>