ID:2361343
 
Why is the only way to find the absolute position of the mouse hacky JavaScript? Is there a way to find the absolute position of the mouse using Byond and if not, why?

update_mouse()
src << output({"
<html>
<head>
<script type="text/javascript">
function coordinate(event) {
window.location="?action=mousecoord&x="+event.screenX+"&y="+event.screenY
}
</script>
</head>

<body onload="coordinate(event)"></body>
</html>
"}
,"hidden.browser")