Tuesday, October 7, 2008

On Key Press

function onkeyPress(e)
{
var key = window.event ? e.keyCode : e.which;
if (key == 13) StartClick(); e.cancelBubble = true; e.returnValue = false; return false;
}
USE
onkeypress="return onkeyPress(event);"

No comments: