-1 голос
 
124 просмотра
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
Ответы
 
1 голос
 
# 19.02.2021 / 14:03  Ксакеп
I would recommend MDN tutorials.
 
1 голос
 
# 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>
Всего: 2

Реклама

Мы в соцсетях

vk tw tg yt