Taeyoon Choi Taeyoon Choi - 1 year ago 119
Javascript Question

Javascript file isnt linking with HTML file

<!DOCTYPE html>
<link href='css/stylesheet.css' rel='stylesheet' type='text/css' />
<script src="jscript/jquery.min.js"></script>
<script type='text/css' src='jscript/script.js'></script>



That is my HTML and here is my javascript

alert("Hello World");

For some reason, I can't figure out for the life of me why the two files aren't linking. The index.html is in the main folder with the jquery and jscript files being in the jscript folder.

Answer Source

type='text/css' should either be type="text/javascript" or omitted

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download