0
다음 코드를 시도했지만 전체 화면에서 작동하지 않습니다.JSNI에서 마우스 위치를 얻는 방법
public static native void hello1()
/*-{
var body=$doc.getElementsByTagName("body")[0];
var posx=0;
var posy=0;
body.addEventListener("click",function (e)
{
if (e.clientX ||e.clientY)
{
posx = e.clientX;
posy = e.clientY;
}
alert('Mouse position is: X='+posx+' Y='+posy);
});
}-*/;