<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">while</td><td valign="top" nowrap class="compatibility">NN <span class="emphasis">2</span> IE <span class="emphasis">3</span> ECMA <span class="emphasis">1</span></td>
				</tr>
				<tr>
					<td valign="top" nowrap class="usage"><p class="literal"></p>
					</td><td valign="top" nowrap class="requirements"></td>
				</tr>
				<tr>
					<td valign="top" colspan="2" class="description">
						<p>Executes statements in a loop as long as a condition is true. Because
the condition is tested at the beginning of the loop, it is
conceivable that under the right conditions, the statements inside
the loop do not execute. It is imperative that the expression that
makes up the condition have some aspect of its value potentially
altered in the statements. Otherwise an infinite loop occurs.
</p>
												</td>
</tr>
				<tr>
					<td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
				</tr>
				<tr>
					<td valign="top" colspan="2" class="example"><span class="title">Example</span></td>
				</tr>
				<tr>
					<td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
				</tr>
				<tr>
					<td><span class="programlisting"><pre>var i = 0;
while (!document.forms[0].radioGroup[i].checked) {
    i++;
}
alert("You selected item number " + (i+1) + ".");</pre>
						</span></td>
				</tr>
			</table>
		</div>

</body>
</html>