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

My JS script wont load although i already put the right html code.

I rechecked my code and everything is in its right place but the page wont self destroy.

Hi Darryl Aldjufrie,

Any chance you could link us to your workspace or repo so that we can check out what's going on?

1 Answer

Hi Darryl, Before the closing tag from the body in your html document, you need to place the tag <script src="the name of your file of js "></script> It will link your document of javascript with your html document. It is the best place to put the tag script.