Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialDonald Richmond
13,807 Points[RESOLVED] Why can my index page not find my javascript page.?
Please help with this annoyance!
I create an index page using Notepad and save it with an .htm extension. I create a JavaScript page with Notepad and save it with extension .js to the SAME folder. I specify in the index page between the <style> </style> brackets the page name with the .js extension just as I am supposed to. Why can the index page NOT find it?????
I have tried replacing the JavaScript's .js extension with .htm without avail.
(Be advised if I paste the JavaScript within the <style> and </style> brackets the code operates correctly!
2 Answers
Jeff Lemay
14,268 PointsSo your tag looks something like this?
<script src="scripts.js"></script>
Is it inside the body tag?
Iain Simmons
Treehouse Moderator 32,305 PointsOr head
tag would work too.
Donald Richmond
13,807 PointsYes.
Thanks, Jeff. It seems to have resolved itself. I must have missed something.
Must sign off now.
Thanks again!
Iain Simmons
Treehouse Moderator 32,305 PointsIain Simmons
Treehouse Moderator 32,305 PointsHi Donald,
I've changed your question title to mark this post as resolved.