0

I'm getting this error from calling a script that has no content except the function itself. I completely stripped down the HTML that is calling it, and the error is still popping up. Here is the code for the HTML:

<!DOCTYPE html>
<html>
    <head>
        <script src="translate.js"></script>
    </head>
    <body>
        <input type="button" id="translate" value="Translate" onclick="translate()"/>
    </body>
</html>

And for the JS:

function translate() {}

As you can see, this is the bare minimum code possible, and this error is still getting returned. This Uncaught TypeError is the only error being returned. What could I possibly be doing wrong??

Felix Kling
  • 795,719
  • 175
  • 1,089
  • 1,143
Romulus3799
  • 1,827
  • 3
  • 15
  • 20

0 Answers0