While Mouse press event. Prototype JS or Javascript
Posted
by nahum
on Stack Overflow
See other posts from Stack Overflow
or by nahum
Published on 2010-04-22T17:43:54Z
Indexed on
2010/04/22
17:53 UTC
Read the original article
Hit count: 369
Hi, I would like to know if someone knows how to make a function repeat over and over while the mouse is press, I don't know how to make it work. I know in prototype you can take events like
$('id').observe("click",function(event){})
$('id').observe("leave",function(event){})
$('id').observe("change",function(event){})
//etc...
but is something like $('id').observe("whilemousepress",function(event){})
:P //I know there is not any event in javascript but I would like to emulate.
thanks...
© Stack Overflow or respective owner