<html>
<link rel="stylesheet" href="josh.css">
<body bgcolor="#FFFFFF">

		<div id="Description">
			<table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
				<tr><td valign="top" class="name">onbeforeunload</td><td valign="top" nowrap class="compatibility">NN <span class="emphasis">n/a</span> IE <span class="emphasis">4(Win)/5(Mac)</span> DOM <span class="emphasis">n/a</span>&nbsp;&nbsp;</td>
				</tr>
				<tr>
					<td valign="top" nowrap class="usage"><p class="literal"></p>
					</td><td valign="top" nowrap class="requirements">Bubbles: No; Cancelable: Yes&nbsp;&nbsp;</td>
				</tr>
				<tr>
					<td valign="top" colspan="2" class="description"><p>Fires just before the current document begins to unload due to
impending navigation to a new page, form submission, or window
closure. This event fires before the <span class="literal">onunload</span>
event, and gives your scripts and users a chance to cancel the unload
action. Some of this activity is automatic to prevent nefarious
scripts from trapping users on a page.
</p>
							</td>
						</tr>
				<tr>
					<td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
				</tr>
						<tr>
							<td colspan="2"><p>			In the <span class="literal">onbeforeunload</span> event handler, assign a
string to the <span class="literal">event.returnValue</span> property to force
IE to display a dialog box that lets the user choose whether the page
should stay where it is or the navigation or window closure action
that the user requested continues as expected. The string assigned to
the event property becomes part of the dialog box message (other text
in the message is hardwired by the browser and may not be removed or
modified). The resulting action is controlled by the
user's button choice in the dialog box.
</p>
							</td>
				</tr>
				<tr>
					<td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
				</tr>
				<tr>
					<td valign="top" colspan="2" class="typicaltargets"><span class="title">Typical Targets</span></td>
				</tr>
				<tr>
					<td colspan="2"><p>			The <span class="literal">body</span> and <span class="literal">frameset</span> elements,
plus the <span class="literal">window</span> object.
</p>
					</td>
				</tr>
			</table>
		</div>
</body>
</html>