Question: src=”filename.js” stand for what?
Answer: filename.js stand for External JavaScript
JavaScript can also be placed in external files.
External JavaScript files often contain code to be used on several different web pages.
External JavaScript files have the file extension .js.
Note: External script cannot contain the <script></script> tags!
To use an external script, point to the .js file in the "src" attribute of the <script> tag:
Example
<html> <head> <script type="text/javascript" src="xxx.js"></script> </head> <body> </body> </html> |
P.s : Before entering my industrial training, I don't event know what is .js file stand for ... zzz ... I am not a Computer Science student at all!
0 comments :
Post a Comment