javascript onmouseup attribute


  Translation results:

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

mouse

英[maʊs] 美[maʊs]

n. Mouse; mouse ; a shy [timid] person; [informal] bruised eyes

vi.catching mice; spying, secretly looking for

Plural: mice

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.In… the upper end of; to high places; to go along; to go upstream of ups present participle: upping past tense: upped past participle: upped

javascript onmouseup attributesyntax

Function: Occurs when the mouse button is released.

Syntax: onmouseup="SomeJavaScriptCode"

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

javascript onmouseup attributeexample

<html>
<head>
    <meta charset="UTF-8">

</head>
<body>

<img src="http://img.php.cn/upload/article/000/005/656/5af270fd37755429.jpg" onmouseup="alert('你点击了这张图片!')" />
<p>鼠标点击图片触发事件</p>
</body>
</html>

Run instance »

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

Home

Videos

Q&A