开发者

richfaces how to detect mouse position

How can I dete开发者_如何学Cct the mouse position on a "onclick" event in RichFaces? Thanks!


You can use the <rich:jQuery> component.

<rich:jQuery selector="#myButtonId" query="click(function(event) {alert("Mouse Position: " + event.pageX + ", " + event.pageY );})" />

Regards.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜