简体   繁体   中英

Javascript not executed on Firefox, working on Chrome & Safari

starting this morning I'm having difficulties executing Javascript code on Firefox. This simple code example:

<html>
<head>
    <script type='text/javascript'>
        alert('HEAD!');
    </script>   
</head>
<body>
    <script type='text/javascript'>
        document.write('<p>BODY</p>');
    </script>   
</body>

works as expected on

  • Safari - Version 7.0.2 (9537.74.9)
  • Chrome - Version 33.0.1750.149

but NOT on Firefox - Version 27.0.1. I'm getting a blank page here, page source looks good.

Firebug says:

No Javascript on this page

I've already

  • checked the about:config => javascript.enabled true
  • disabled all extensions and restarted Firefox
  • restarted Apache/MAMP PRO (2.1.4) - doesn't even work for me via intErnet, so this should be not related to MAMP ( http://shoco.biz/test.html )
  • restarted the computer (Mac OS X 10.9.2)

Any ideas? Thanks in advance...

尝试在安全模式help -> Restart with Add ons disabled下打开firefox help -> Restart with Add ons disabled然后重置所有内容

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM