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
Post a Comment