My website is a calculator and with each calculation I rewrite the page to display the results of the calculation. When you change some user options, however, I reload the page. I do this because after changing these options I want to start all over, resetting all the default parameter values.
The JS code I use for this is simply:
or it works the same using the file name:
I use "top." because it is a frames page.
This works fine with Internet Explorer, reloading the page with all the original parameter defaults and reflecting the new user option selections which were saved in a cookie. It does not work, however, with Netscape. The page appears to reload, but the new user option selection saved in the cookie has not taken affect.
I can see what is happening -- the page is not being fully reloaded -- because after typing Shift and clicking on the Reload icon the page reloads properly.
Also, I get Netscape JS error messages like:
Error: Uncaught exception: Permission denied to get property HTMLDocument.write
Any ideas what is causing this error message; what it means; and/or why the page is reloading properly?