<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="xslt-style.xsl"?>

<data>
<back href="../index.html"/>
<title>JavaScript hints</title>
<head>
</head>
<content>
	<noscript>
		<div style="position: absolute; top: 0px; left: 0px; background-color: #fa0; width: 100%; text-align: center;">
			<p><strong>Attention:</strong> Currently you have JavaScript disabled. The examples won’t work as long as you don’t activate it.</p>
			<p>See also <a href="noscript.xml" style="color: #000; font-style: italic; border-bottom-color: #000;">this page</a> about how to notify users when JavaScript is disabled.</p>
		</div>
	</noscript>
	<p>
	<dl>
		<dt><strong>Content</strong></dt>
		<dd><strong><a href="idAndName.xml">id, name</a></strong> — Accessing elements with document.getElementById() (W3C) instead of document.all (IE)</dd>
		<dd><strong><a href="keyCode.xml">Events: keyDown, keyPress and keyUp</a></strong> — Handling keyboard events</dd>
		<dd><strong><a href="srcElement.xml">Events: target, srcElement</a></strong> — Obtaining the source element with Event.target (W3C) and Event.srcElement (IE) </dd>
		<dd><strong><a href="eventReturnVal.xml">Cancelling events</a></strong> — Making use of true/false return values</dd>
		<dd><strong><a href="frames.xml">Frames</a></strong> — Addressing frames, changing the location.(href|replace)</dd>
		<dd><strong><a href="contentWindow.xml">contentWindow</a></strong> — Addressing the window Object from a frame/iframe</dd>
		<dd><strong><a href="innerText.xml">innerText and textContent</a></strong> — Once again: IE vs the rest</dd>
		<dd><strong><a href="location.xml">Location</a></strong> — Changing the location with/without history entry</dd>
		<dd><strong><a href="options.xml">Options</a></strong> — Modifying options in a selection</dd>
		<dd><strong><a href="nullUndefined.xml">null/undefined</a></strong> — Difference between <code class="js">null</code> and <code class="js">undefined</code></dd>
		<dd><strong><a href="intervals.xml">Intervals and Timeouts</a></strong> — How to use</dd>
		<dd><strong><a href="arrays.xml">Arrays</a></strong> — Size of multi-dimensional arrays</dd>
		<dd><strong><a href="selectText.xml">Select text</a></strong> — Doing it programmatically</dd>
		<dd><strong><a href="lambda.xml">Lambda expressions</a></strong> — and anonymous functions</dd>
		<dd><strong><a href="noscript.xml">Deactivated JavaScript</a></strong> — Give the user a hint</dd>
		<dd><strong><a href="practices.xml">Practices</a></strong></dd>
		
		<dt><strong>Examples</strong></dt>
		<dd><strong><a href="mouseover-css.xml">Mouseover example</a></strong></dd>
		<dd><strong><a href="timeout.xml">Timeout example</a></strong></dd>
		<dd><strong><a href="evntCancel1.html">Cancelling events example #1</a></strong></dd>
		<dd><strong><a href="evntCancel2.html">Cancelling events example #2</a></strong></dd>
	</dl>
	</p>
	
	<p>
	<dl><dt><strong>Event library</strong> for W3C browsers and IE, providing functions to return the event, the keyCode, and the srcElement in Firefox, IE, Opera, Safari, …: </dt>
	<dd><a href="w3c-ie.js">Download</a></dd>
	</dl>
	</p>
	
	<p>
	<dl>
		<dt><strong>Links</strong></dt>
		<dd><a href="http://javascript.crockford.com/code.html">JavaScript Code Conventions</a></dd>
		<dd><a href="http://www.quirksmode.org/dom/compatibility.html">W3C DOM Compatibility Tables</a></dd>
		<dd><a href="http://www.quirksmode.org/sitemap.html">Quirksmode’s Sitemap</a>, very valuable resource</dd>
		<dd><a href="http://www.jslint.com/">JSLint</a>, excellent JavaScript Verifier</dd>
		<dd><a href="http://www.howtocreate.co.uk/tutorials/javascript/browserinspecific">JavaScript tutorial - Browser inspecific referencing</a>, also about frames</dd>
		<dd><a href="http://www.javascripttoolbox.com/bestpractices/">Javascript Best Practices</a></dd>
		<dd><a href="http://www.w3.org/TR/DOM-Level-2-Core/">DOM Level 2 Core Specification</a></dd>
	</dl>
	</p>
</content>
</data>

