'js select element not calling function if Safari

a call to a function from a select works fine in Firefox and Chrome, but not in Safari

example:

<!DOCTYPE html>
<html>
<body>

    <SELECT  onmouseup = "makeplot(this.value)">
        <OPTION value="type1">first choice</OPTION>
        <OPTION value="type2">2nd choice</OPTION>
        <OPTION value="type3">3d choice</OPTION>
        <OPTION value="type4">last choice</OPTION>
    </SELECT>

<script>
function makeplot(word) {
  alert("word is "+word);
}
</script>
</body>
</html>


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source