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 trial

JavaScript JavaScript Loops, Arrays and Objects Simplify Repetitive Tasks with Loops A Closer Look at Loop Conditions

[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!

Hi Donald,

I've changed your question title to mark this post as resolved.

2 Answers

Jeff Lemay
Jeff Lemay
14,268 Points

So your tag looks something like this?

<script src="scripts.js"></script>

Is it inside the body tag?

Or head tag would work too.

Yes.
Thanks, Jeff. It seems to have resolved itself. I must have missed something. Must sign off now. Thanks again!