javascript to external .js file -


can't figure out proper syntax place javascript code .js file.

<script type='text/javascript' src='http://hostedusa3.whoson.com:8080/include.js?domain=www.yourdomain.com'></script>     <script type='text/javascript' > if(typeof swotrackpage=='function')swotrackpage(); </script> 

if want inline code inside separate file, have move contents of second script tag .js file. then, set src attribute second <script> reference new file's url (relative or absolute).


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -