<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">in</td><td valign="top" nowrap class="compatibility">NN <span class="emphasis">6</span> IE <span class="emphasis">5.5(Win)</span> ECMA <span class="emphasis">n/a</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>The <span class="literal">in</span> operator lets scripts quickly uncover
whether an object has a particular property or method implemented for
it. The left operand is a string containing the name of the property
or method (method name without parentheses), while the right operand
is a reference to the object. If your exploration requires DOM
references entailing "dots," put
them in the object reference side of the expression. In other words,
instead of trying <span class="literal">"style.filter" in</span>
<span class="literal">document.body</span>, use <span class="literal">"filter" in
document.body.style</span>. Were it not that so few browsers
implement this future ECMA operator, it would be a useful tool in
object detection.
</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>if ("createDocument" in document.implementation) {
    // go ahead and use document.implementation.createDocument( )
}</pre>
						</span></td>
				</tr>
			</table>
		</div>

</body>
</html>