contentEditable Demo

by Scott Olson

HTML

<div contentEditable id="demo">Demo</div>

<p>Pressing [Tab] exits the contentEditable</p>

JavaScript

document.getElementById("demo").focus()