0
How does the HTML know where to find the fuction?
"Corresponding events can be added to HTML elements as attributes. For example: <p onclick="someFunc()">some text</p>"
3 Answers
+ 5
Javascript functions are called if they are in an external file, between <script> tags, or they are in inline Javascript in the HTML
+ 10
In Javascript code added or linked in HTML Script tag/s.
+ 1
Not HTML, the browser loads, parses and executes JS.