javascript - Unexpected token error on document.write (<script src="../../js/jquery.min.js"></script>) -


i have syntax on website , every time open sources tab, there's error:

unexpected token

here's syntax, unsure of put 2nd </script> tab:

<script>   window.jquery || document.write (<script src="../../js/jquery.min.js"></script>) </script> 

you writing through .write instruction. strings behind quote in javascript.

write this:

document.write('<script src="../../js/jquery.min.js"><\/script>') 

Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -