C Books Guide and List
C++ Books Guide and List
Best Java Books

3,749 questions

4,049 answers

114 comments

10,705 users

How to use <script> tag?

0 votes
15 views
asked Apr 23, 2014 by rock Expert (14,990 points)

1 Answer

0 votes
This element contains the scripts that will be executed in the page, and it can occur in either the <head> or the <body> section of the page.

Example

<html>
<head>
<script language="javascript" src="yourlinkedjavascriptfile.js"></script>
<script id="script1" language="javascript">

     //scriptcode declarations

</script>
</head>
<body>
     <script id="script2" language="javascript">
     
          //script code declarations
     
     </script>
</body>
</html>
answered Apr 23, 2014 by smith Geek (15,340 points)

Related questions

0 votes
1 answer 41 views
41 views asked Apr 23, 2014 by rock Expert (14,990 points)
0 votes
1 answer 30 views
30 views asked Apr 23, 2014 by rock Expert (14,990 points)
0 votes
1 answer 30 views
30 views asked Apr 23, 2014 by rock Expert (14,990 points)
0 votes
1 answer 27 views
27 views asked Apr 23, 2014 by smith Geek (15,340 points)
0 votes
1 answer 28 views
28 views asked Apr 23, 2014 by smith Geek (15,340 points)
...