<IMG src="../../../gif/rfexample.gif" onClick="alert('Ŭ¸¯Çß½À´Ï´Ù.')">
<IMG src="../../../gif/rfexample.gif" onDblClick="alert('¾È³çÇϼ¼¿ä!')">
<SCRIPT> function warning(){alert("Ŭ¸¯ À̺¥Æ®·Î ±â´ÉÇÔ¼ö¸¦ ÅëÇÏ¿© °æ°íÀ» ¹ß»ý½ÃÄ×½À´Ï´Ù.")} </SCRIPT> <A onDblClick="warning()" style=text-decoration:underline>¿¬°á¿¡¼ ´õºíŬ¸¯ ¿¹Á¦</A>
°°Àº »ö»óÀ» ¼±ÅÃÇÏ¸é º¯°æµÇÁö ¾Ê¾ÒÀ¸¹Ç·Î onchange À̺¥Æ®°¡ ¹ß»ýµÇÁö ¾Ê¾Æ º¯µ¿ÀÌ ¾ø´Ù.
<SCRIPT> function paint(obj,color){ obj.style.backgroundColor=color; } </SCRIPT> <FORM name="testform" style="padding:10px;width:200px"> <SELECT onChange="paint(this.form,this.value)"> <OPTION value="pink">pink</OPTION> <OPTION value="yellow">yellow</OPTION> <OPTION value="aqua" selected>aqua</OPTION> <OPTION value="lightgreen">lightgreen</OPTION> <OPTION value="orange">orange</OPTION> </SELECT> </FORM>
¿©±â¼ this.form À̶õ ÇØ´ç form ´Ù½Ã ¸»ÇØ °³Ã¼ testform À» ÁöÁ¤ÇÑ °ÍÀÌ°í, ±× °ªÀ» ±â´ÉÇÔ¼ö(function) ¿¡¼´Â obj ·Î ¹Þ°í, this.value ´Â ¼±ÅÃµÈ ¼±ÅûçÇ×ÀÇ °ªÀ» ÁöÁ¤ÇÑ °ÍÀ¸·Î ±â´ÉÇÔ¼ö¿¡¼´Â color·Î ¹Þ´Â´Ù.
±â´ÉÇÔ¼ö¿¡ Àü´ÞµÈ ÀÌµé µÎ °ªÀ» ÀÌ¿ëÇÏ¿©, ±â´ÉÇÔ¼ö¿¡¼´Â ¹è°æ»öÀ» º¯°æ½ÃŲ´Ù.
¿©±â¼ Ŭ¸¯ À̺¥Æ®·Î »õ·Î¿î À¥ÆäÀÌÁö(º¸Á¶Ã¢)¸¦ ¿¾î ÁØ´Ù.
<FORM method=post> <INPUT name=B1 onClick="window.open('wchangebg.html','win','width=200,height=150,left=200,top=200')" type=button value="°á°ú¸¦ º¸¶ó"> </FORM>
º¸Á¶Ã¢(wchangebg.html) ¼Ò½º <FORM name="f3">»öÀ» ¼±ÅÃÇØ º¸¶ó<BR> <INPUT type="checkbox" name="check1" onClick="document.bgColor='lightblue'" value="û»ö"><BR> <INPUT type="checkbox" name="check2" onClick="document.bgColor='lightyellow'" value="³ë¶û"><BR> <INPUT type="checkbox" name="check3" onClick="document.bgColor='lightgreen'" value="³ì»ö"><BR> <BR> <INPUT type="button" onClick="self.close()" value="â´Ý±â"> </FORM>
<SCRIPT> function warning(){alert("Ŭ¸¯ À̺¥Æ®·Î ±â´ÉÇÔ¼ö¸¦ ÅëÇÏ¿© °æ°íÀ» ¹ß»ý½ÃÄ×½À´Ï´Ù.")}</SCRIPT> <span onClick="warning()" style="background-color:#afa;border:solid 1 blue">¿©±â¸¦ Ŭ¸¯ÇØ º¸¶ó</span>
´õºíŬ¸¯À¸·Î ÀÌÀüÆäÀÌÁö·Î °¡±â |
<TABLE border=4 cellpadding=4 cellspaing=4 bgcolor=aaffee> <TR><TD onDblClick="history.back()">´õºíŬ¸¯À¸·Î ÀÌÀüÆäÀÌÁö·Î °¡±â</TD></TR> </TABLE>