I wrote a very simple JavaScript function to take a numeric input and show it on screen as the innerHTML of a paragraph element. The function was named 'multiple' (see code below). It did not work.
However, changing the name of the function to 'myMultiple' enabled the script to work. I cannot see 'multiple' on the list of reserved JavaScript words - is something else causing this error?
<body>
<p>Write something in the text field to trigger a function.</p>
<input type="text" id="funcnTest" oninput="multiple()">
<p id="myOutput"></p>
<script>
function multiple() {
var myInputVal = document.getElementById("funcnTest").value;
document.getElementById("myOutput").innerHTML = "The value: " + myInputVal;
}
</script>
</body>