-1 голос
 
574 просмотра
18.02.2021 / 14:57  Prashanth

Include javascript code in HTML

Hello all,

I just started learning HTML and was confused on how to include javascript code in HTML
Ответы
 
2 голоса
 
# 18.02.2021 / 19:09  vladgba
The answer is easy to find on Google.
Here is the first article from the search results:
  1. <script type="text/javascript">
  2.   alert("This alert box was called with the onload event");
  3. </script>
  1. <script type="text/javascript" src="path-to-javascript-file.js"></script>
 
1 голос
 
# 19.02.2021 / 14:03  Ксакеп
I would recommend MDN tutorials.
Всего: 2

Реклама

Мы в соцсетях

tw tg yt gt