Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
Jonathan Wright5,853 Points
Make sure you are not running any sort of adblockers on your team treehouse pages. I have found that this will cause issues with some of my code.
George Nono11,256 Points
I have figured this out, I had the same problem. I'm not sure if you fixed it or not but this is what I did.
I created a new workspace - I made a file and titled it "index.html" - I added the following: <!DOCTYPE html> <html> <head></head> <body> <script src='scripts.js'></script> </body> </html>
I then created another file and titled it "scripts.js" - I typed in the alert and the document.write and it worked.
If you have any questions please contact me.
I faced the same problem.
Step 1: I renamed the scripts.js file to myscripts.js
Step 2: Change the file name in the src attribute in index.html. Save changes.
Step 3: Click on Preview button. If the browser opens up a blank page, then add /index.html.
It should like http://port-80-xxxxxxx.treehouse-app.com/index.html and then hit enter.
Jared Lenover2,120 Points
My alert command didn't seem to work properly when I was in Firefox. (Might just be my settings.)
I logged into Treehouse in Chrome and tried again. Worked. :)