Programming
No. | 477 |
Name. | swindler |
Subject. | JavaScript onunload Event |
Main Cate. | Javascript |
Sub Cate. | |
Date. | 2008-10-07 13:03 |
Hit. | 2856 (210.182.190.136) |
File. | |
Definition and Usage The onunload event occurs when a user exits a page. Syntax onunload="SomeJavaScriptCode" Parameter Description SomeJavaScriptCode Required. Specifies a JavaScript to be executed when the event occurs. Supported by the following HTML tags: <body>, <frameset> Supported by the following JavaScript objects: window -------------------------------------------------------------------------------- Example In this example an alert box will be displayed when the page is closed: <body onunload="alert('The onunload event was triggered')"> </body> * onbeforeunload [바로가기 링크] : http://coolx.net/cboard/develop/477 |
|
|
|
[Modify] [Delete] | [Reply] [List] |