ÁöÁ¤µÈ °³Ã¼ÀÇ À̺¥Æ®Ã³¸®ÀÚ¸¦ È£ÃâÇÑ´Ù.
ÇʼöÀûÀÎ ÀμöÀ̸ç, À̺¥Æ® ó¸®ÀÚ¸¦ È£ÃâÇÏ´Â °³Ã¼ÀÇ À̸§ÀÌ´Ù.
´ëºÎºÐÀÇ form °³Ã¼¿Í À©µµ¿ì(window), document, image °³Ã¼µîÀ» Æ÷ÇÔÇÏ¿© ±¤¹üÀ§ÇÏ°Ô Àû¿ëµÈ´Ù.
ÇʼöÀûÀÎ ¿ä¼Ò·Î ÁöÁ¤µÈ °³Ã¼ÀÇ À̺¥Æ®Ã³¸®ÀÚ¸¦ È£ÃâÇÑ´Ù.
¼±ÅÃÀûÀÎ ¿ä¼ÒÀ̸ç ó¸®ÇÒ À̺¥Æ®ÀÇ Á¾·ù À̸§ÀÌ´Ù.
ÁöÁ¤µÈ°³Ã¼ ÀÇ À̺¥Æ®¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÒ ¼ö ÀÖ´Ù.
document.formName.inputName.handleEvent(); document.forms[0].elements[1].handleEvent(); windowName.handleEvent(); testForm.handleEvent=testForm.submit(); if (obj.form.handleEvent=='onReset') obj.form.reset();
<DIV class=show id=showarea title="°á°ú"></DIV> <SCRIPT> function handleEventReset(obj,event){ obj.form.handleEvent=event; alert(testForm.handleEvent); if(obj.form.handleEvent=='onClick'){ showarea.innerHTML='obj.name="'+obj.name+'"<BR>event="'+event+'"'; obj.form.reset(); } } </SCRIPT> <FORM name=testForm> <INPUT type="button" name="buttonReset" value="buttonReset" onClick="handleEventReset(this,'onClick')"> onClickÀ¸·Î onReset È£Ãâ<BR> </FORM>