I have a set of HTML files using JavaScript to create navigation, indexing, TOC, etc. These files are intended only for local opening (for example, file: //) and are not served on the web server. Starting with Firefox 3.x, we run the following error when the nav button is pressed, which generates a new frame for the TOC:
Error: Permission denied for <file:
I understand that this is due to security measures inside FF 3.x that were not in 2.x, because document.domain does not match, so it assumes that this is cross-site scripting and denies access.
Is there a way around this problem? Perhaps just a switch to turn on / off in Firefox? Some JavaScript code to get around it?
javascript html firefox
Gudlyf
source share