Community marked my problem as duplicate, but as far as I can tell, it is not duplicate. The question was not: how to handle an event for Firefox, but rather: Why does this code NOT work in Firefox under Windows-10, although it does work in all other environments !!
JQuery event works fine in all tested environments, but not in Firefox under Windows10
Example program is an extract of a more complicated program. When you click on the link, an alert popup should display coordinates. It works in Firefox under Windows7 and Windows8.1, Android, IE, Chrome, Edge (under Windows10), but does NOT work in Firefox (Version 60.8.0esr (32-bits)) under Windows10. Errormessage: ReferenceError: event is not defined. Unfortunately cannot debug this any further, because this happens on a W10 machine from a friend. I myself have W7. According to literature, Firefox itself does not handle events (is that correct?), but JQuery should be able to handle this elegantly. To be sure that JQuery 'knows' W10, I'm using the latest version of JQuery. Could the problem be some specific Firefox setting ?
Maybe relevant: The PC with the errormessage has the Englisch language version of Windows-10 and the Dutch language version of Firefox.
<!DOCTYPE html>
<html>
<head>
<style>
.myStyle {text-decoration:underline; color:blue; display:inline; cursor:pointer;}
</style>
<script type="text/javascript" language="javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"> </script>
<script type="text/javascript">
function display_output() {
alert("Value for event.pageX: " + event.pageX + "\nValue for event.pageY: " + event.pageY);
}
</script>
</head>
<body>Please
<span class="myStyle" onclick="display_output();"> Click here</span> to see the coordinates.
</body>
</html>
Expected result: a normal popup (generated by the alert statement) showing 2 values. This popup shows correctly except in Firefox under Windows10: nothing is shown, but after F12 the console window shows: ReferenceError: event is not defined.