Can someone tell me why Javascript is not working on any browser?

I am trying to learn Javascript from a tutorial. I'm using Text edit to create a simple .html file that calls a .js file using the script command. The .html file opens normally in the default browser and can print a message to a simple page. It looks like a window tries to open the .js file but it vanishes before opening. This happens in three browsers: Firefox, Safari, Chrome. I have checked that Javascript is enabled in all three browsers. Opening Firefox in Safe mode does not fix the problem.


This problem happens on three Macs, all running Mavericks 10.9.2. When I try this on a Windows PC the .js file executes as expected.


I've tried everything I can think of including turning off the Firewall in Security Settings. It seems like it has to be something system-wide since it happens in all three browsers. Has Apple implemented some type of blocking of Javascript in Mavericks? Any suggestions for why this is not working on my Macs and what I can do to fix it would be greatly appreciated!

Posted on Mar 30, 2014 9:24 AM

Reply
8 replies

Mar 30, 2014 8:37 PM in response to GeneLand

Try troubleshooting extensions and third party plug-ins.



From the Safari menu bar click Safari > Preferences then select the Extensions tab. Turn that OFF, quit and relaunch Safari to test. If that helped, turn one extension on then quit and relaunch Safari to test until you find the incompatible extension then click uninstall.


If it's not an extensions issue, try troubleshooting third party plug-ins.


Back to Safari > Preferences. This time select the Security tab. Deselect: Allow plug-ins. Quit and relaunch Safari to test.


If that made a difference, instructions for troubleshooting plugins here.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Can someone tell me why Javascript is not working on any browser?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.