English 中文(简体)
MuseButtonUp
原标题:onMouseButtonUp

我需要找到某种办法,了解用户何时释放 mo子,例如钥匙Up,但用于 mo。

任何想法?

PS:我要说几句:活跃的假歌,我的想法是<条码>做一些事情(<>>>>>>> 。 ......现在......如果你找到更好的解决办法,我就会 up!

最佳回答

这项活动是onmouseup:。 http://www.w3schools.com/jsref/event_onmouseup.asp

Or mouseup 如果你重新点名。 增 编 活动 或利用 Java的一个框架,将“on”部分名下。

<>Update:

如果你想听 任何<><>m>>> 停播活动,你就不必在你 on的呼声中在一页机上登记一位即时的听众,然后在警钟内(因此只发生一次)。

如果你重新使用j Query,可以通过one()功能完成。

当然,如果用户在释放 but子之前在浏览器窗户之外移动其 mo,那么你就获得了 mo。 我不敢肯定你能做什么。

问题回答

The according event is called onmouseup... You can see a sample implementation here: http://www.webmonkey.com/codelibrary/JavaScript_Event_-_Mouseup

你们可能期待的是:

<button onmouseup="alert( hello world );">Say hello world on mouse-up</button>




相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.