Might work:
Code:
<script type="text/javascript">
window.onload=function()
{
document.getElementById('test').onkeypress=function()
{
var show=document.getElementById('test1');
show.firstChild.nodeValue='You are typing...';
}
document.getElementById('test').onkeyup=function()
{
var show=document.getElementById('test1');
setTimeout(function()
{
show.firstChild.nodeValue='You are no longer typing.';
},2000); // Listen for 2 seconds of silence
}
}
</script>
<h3 id="test1">You are not typing yet</h3>
<textarea id="test">
</textarea>
Bookmarks