var key = String.fromCharCode(event.keyCode || event.charCode);
alert(key);
}
document.write(obj);
</script>
</body>
</html>
Ankur Motreja
Sunday, February 3, 2008
This is a bug in AW - onKeyPress event does not work in Opera. It will be fixed in the next release, and in the meantime you can use the following code -
obj.setEvent("onkeypress", function(event){
var key = String.fromCharCode(event.keyCode || event.charCode);
alert(key);
});