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>"

21st Apr 2017, 11:20 PM
Alex
Alex - avatar
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
22nd Apr 2017, 12:24 AM
⏩▶Clau◀âȘ
⏩▶Clau◀âȘ - avatar
+ 10
In Javascript code added or linked in HTML Script tag/s.
22nd Apr 2017, 12:48 AM
Ismail
Ismail - avatar
+ 1
Not HTML, the browser loads, parses and executes JS.
22nd Apr 2017, 12:34 AM
SamG