Skip to content Skip to sidebar Skip to footer

Javascript Firefox Issue

I developed a .htm document with an in-built script for javascript to run a program. In google chrome, the program works fine, but I got a beta test complaint that it didn't work o

Solution 1:

The problem is that using document.write overwrites the entire HTML page, thus inadvertently removing the GenerateCoord script. I'd suggest appending the link to the document (in ShowTarget) rather than attempting to re-write it.

For example, have a container element where the link should be:

<div id="links_container"></div>

Then to append the links, use:

document.getElementById('links_container').innerHTML = Link;

Post a Comment for "Javascript Firefox Issue"