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

Melanie McCammon
Melanie McCammon
4,146 Points

Clicked a button on a prompt box, now alerts and prompts don't work.

I am using Chrome and am working through the JavaScript Basics lessons using prompt() and alert().

I unthinkingly clicked a button that asked something like "do you want to prevent messages from this website in future."

Now, none of the alerts and prompts that were working before are showing up.

I have tried quitting Chrome and reloading the page--no joy. I have tried opening it from Safari--no joy.

Anyone know of a way to undo this?

Thanks!

Melanie McCammon
Melanie McCammon
4,146 Points

Never mind--it's working again. Not sure what I changed, but I no longer need help.

I've done that before myself, and it took forever to figure out! lol

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 91,252 Points

Google is your friend for all occasions such as this. :-)

1 Answer

Ron McCranie
Ron McCranie
7,837 Points

First, try it in a new 'private' browsing window. If it works then you need to clear your cache. Trying something in a private browsing session is the best way to troubleshoot caching issues.

Melanie McCammon
Melanie McCammon
4,146 Points

Clearing my cache was one of the things I tried right before it started working again. I think that did it. Thanks!