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

Alert boxes not working - safari mac

Hi, I've been following through exactly, but everytime I click preview, the alert boxes do not prompt up like how they do in the video.

Can anybody please explain or help? Running Safari on Macbook air.

Thanks.

I realised its not working because when I click preview from the workspaces, the URL has "port-80" then the rest. I then replaced the port-80 with web (I noticed this was the URL starter in the videos) and then it started working with the alert boxes etc.

How do I stop it redirecting to port-80 first?

Thanks.