pos
returns the position of the mouse pointer relative to the upper-left corner of the screen
object pos(Event ev);
| ev | Event | a native HTML event |
| object | the position object |
Example
<input type="radio" id="myradio" name="Color" value="Blue">
document.getElementById("myradio").onclick = function (e){
var pos = webix.html.pos(e||event);
console.log(pos); //returns { x:21, y:500 }
}
See also
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support,
connect with other developers, and share your feedback there.