Ask your own question, for FREE!
Computer Science 17 Online
OpenStudy (anonymous):

Hi, When you put javascript in html, and when its separate file .js, and how do you call java script?

OpenStudy (anonymous):

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.

OpenStudy (anonymous):

<script type="text/javascript" src="xxx.js"> from: http://w3schools.com/tags/att_script_src.asp

OpenStudy (anonymous):

Thanks jmit

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!