What's up experts. I have a problem that's driving me crazy.. I can't get any external javascript files to link to any of my pages.
They work perfect if I put it all in the head section but as soon as I put the JavaScript into an external file and try to link to it, it doesn't work. I'm pretty new to javascript but this is 101 stuff and I've literally spent hours searching through forums & trying to make it work.
Sorry if this is a stupid question that's been answered before but like I said, I couldn't find anything online to help me out. Hopefully someone can help me & maybe some other people that are having this problem (I'm sure I'm not the only one)..
I made sure there are no script tags in the external file and I'm linking them the standard way in the head section-
<script type="text/javascript" src="javascript_test.js"></script> , I have the
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> linked before it, and I checked like 100 times that it was in the right folder (the same as the index.html) and had the correct name. Again, the javascript works fine when I put it all in the header; the link is the problem.
Any ideas? Thanks.