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

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -