Hi, When you put javascript in html, and when its separate file .js, and how do you call java script?
look up import statement something like <java script //import statement.js /> this is junk i just so rarely write it instead of copy and paste that I can't seem to recall the command oh well its an easy google for you....people do this to try to hide their js scripts from people that right click but anybody that is worth their salt knows how to get the script anyway. I don't bother I just directly embed for all to see. however calling multiple .js files can be handy if u have a huge ajax or javascript script and want to divide it for claritys sake.
<script type="text/javascript" src="xxx.js"> from: http://w3schools.com/tags/att_script_src.asp
Thanks jmit
Join our real-time social learning platform and learn together with your friends!