0
In HTML which tag is used to insert JavaScript ?
3 Answers
+ 7
<script language = "JavaScript" src = "source" type="text/javascript">script</script>
+ 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>
+ 1
<script type="text/javascript" src="#">
/* JavaScript here
......
...... */
</script>