Helpful Information
 
 
Category: Coding tips & tutorials threads
Including script source as well as executing embedded script

Here is a useful article by John Resig (http://ejohn.org/blog/degrading-script-tags/) about using a single script element for including a JS library as well as writing some JS code. Normally the following code will not show the alert.



<script type="text/javascript" src="mylib.js">
alert('This will not execute');
</script>










privacy (GDPR)