<script>
a=""
function st()
{
a+=String.fromCharCode(event.keyCode)
}
</script>
<body onclick="alert(a)" onkeydown="st()">
点鼠标显示输入的字符