4,552,157 th visitor since 2017.2.1 ( Today : 742 )
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



Name
Password
Comment
Copyright © 1999-2017, swindler. All rights reserved. 367,611 visitor ( 1999.1.8-2004.5.26 ), 2,405,771 ( -2017.01.31)

  2HLAB   2HLAB_Blog   RedToolBox   Omil   Omil_Blog