»ç¿ëÀÚ°¡ ÆäÀÌÁö³ª °³Ã¼¿¡¼ ÀÌÅ»ÇßÀ» ¶§ Áï½Ã ¹ß»ýÇÑ´Ù.
À̺¥Æ® ¼Ó¼º | object.onunload=handler | JScript ¸¸- |
---|---|---|
object.onunload=GetRef('handler') | VBScript 5.0- | |
ÀζóÀÎ HTML | <ELEMENT onunload ="handler"> | ¸ðµç Ç÷§Æ®Æû |
¸í¸íµÈ ½ºÅ©¸³Æ® | <SCRIPT for=object event=onunload> | Explorer- |
Bubbles | ¾øÀ½ |
---|---|
Ãë¼Ò | ºÒ°¡ |
¹ß»ý ¿øÀÎ |
|
µðÆúÆ® ÀÛ¿ë | ÇöÁ¦ÀÇ À©µµ¿ì¿¡¼ °³Ã¼³ª ¹®¼¸¦ Á¦°ÅÇÑ´Ù. |
HTML ±Ô°Ý | HTML 4.0 ±Ô°Ý |
DHTML °³Ã¼ ¸ðµ¨¿¡¼ À̺¥Æ®Ã³¸®ÀÚ´Â ÆĶó¸ÞÅ͵éÀ» Á÷Á¢ ¹ÞÁö´Â ¸øÇصµ, event°³Ã¼ÀÇ Äõ¸®¸¦ »ç¿ëÇÒ ¼ö ÀÖ´Ù.
altKey | ALT Å°°¡ ´·È´Â°¡¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. |
altLeft | ¿ÞÂÊ ALT Å°°¡ ´·È´Â°¡¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. |
ctrlLeft | ¿ÞÂÊ CTRL Å°°¡ ´·È´Â°¡¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. |
shiftLeft | ¿ÞÂÊ SHIFT Å°°¡ ´·È´Â°¡¸¦ ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. |
type | À̺¥Æ® °³Ã¼ÀÇ À̺¥Æ® ¸íĪÀ» ¹ÝȯÇϰųª ¼³Á¤ÇÑ´Ù. |
À¥ ÆäÀÌÁö³ª À̹ÌÁö µîÀ» ´Ù ÀÐ¾î µéÀ̸é onload À̺¥Æ®°¡ ¹ß»ýµÇ°í, ÆäÀÌÁö¸¦ ´Ý°Å³ª ´Ù¸¥ ÆäÀÌÁö·Î °¡¸é ±× ÆäÀÌÁö¿¡¼ ÀÌÅ»ÇϹǷΠonunload À̺¥Æ®°¡ ¹ß»ýµÈ´Ù.
¹®¼°¡ ¾ð·ÎµåµÇ¸é ´Ù¸¥ HTML ű׳ª Javascript ÄÚµå´Â ´õÀÌ»ó ½ÇÇàÇÒ ¼ö ¾øÀ¸¹Ç·Î onunload À̺¥Æ®¸¦ »ç¿ëÇÏ¿© ¹®¼°¡ ´ÝÈù ÈÄ¿¡ ½ÇÇàÇÒ ³»¿ëÀ» ÁöÁ¤ÇÏ¿©¿©¾ß ÇÑ´Ù.
°³Ã¼ | script | HTML | IE |
---|
<SCRIPT for="window" event="onunload">alert('window °³Ã¼¿¡¼ onunload À̺¥Æ®°¡ ¹ß»ýµÇ¾ú´Ù.');</SCRIPT> <FORM> <INPUT type=button value="ÀÌÀü ÆäÀÌÁö·Î À̵¿" onclick="history.back()"> </FORM>