on

英[ɒn]   美[ɑ:n]  

prep. (indicating direction) to; (indicating object) to; (indicating position) on...; (indicating time) at the time of...

adv. (put, wear, connect) on; forward, (continue) go on

adj. active situation, state ;used; happening; planned

key

英[ki:] 美[ki]

n.Key; Key (of a typewriter, etc.); key, clue, secret; key (of music)

vt. Type; lock; adjust the tone of...; provide clues

vi. Use a key

adj.Key; main

Third person singular: keys Plural: keys Present participle: keying Past tense: keyed Past participle: keyed

up

英[ʌp] 美[ʌp]

adv. Above, at a high place; get up, get up; upward; from low to high

adj. Upward; Rising; upright, vertical; lifted

vt.& vi. increase; accelerate; improve; lift, pick up

prep. at the upper end of; to a high place ; go along with; go upstream of... Formula: upped Past participle: upped

javascript onKeyUp attribute syntax

Function: Occurs when the keyboard key is released.

Syntax: onkeyup="SomeJavaScriptCode"

Parameters: SomeJavaScriptCode Required. Specifies the JavaScript to be executed when this event occurs.​

javascript onKeyUp attribute example

<html>

<head>
<script type="text/javascript">
function upperCase(x)
{
var y=document.getElementById(x).value
document.getElementById(x).value=y.toUpperCase()
}
</script>
</head>

<body>
	
输入您的姓名(请输入小写字符查看效果): <input type="text" id="fname" onkeyup="upperCase(this.id)" />

</body>
</html>

Run instance »

Click the "Run instance" button to view the online instance