0

In HTML which tag is used to insert JavaScript ?

27th Dec 2016, 1:51 PM
sreelekshmi
sreelekshmi - avatar
3 Respostas
+ 7
<script language = "JavaScript" src = "source" type="text/javascript">script</script>
27th Dec 2016, 1:52 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 4
If you are writing JavaScript code, use the language attribute as follows: <script language="JavaScript"> // JavaScript code goes here </script> Usually, most JavaScript code is put into an external file, which is attached to HTML, like this: <script src="/path/to/script.js"></script>
27th Dec 2016, 2:19 PM
guizani mahmoud
guizani mahmoud - avatar
+ 1
<script type="text/javascript" src="#"> /* JavaScript here ...... ...... */ </script>
27th Dec 2016, 2:09 PM
Dhruv Saxena
Dhruv Saxena - avatar