Is There An Error In My Code Or Does It Have To Do With My Firefox 12 Browser?
I copied the following code from a tutorial, but still couldn't figure out whether I made a mistake somewhere or whether it has to do with the browser support. Thanks in advance fo
Solution 1:
I think the problem might be because of document.write
Any document.write statement that runs after the page finishes loading will create a new page and overwrite all of the content of the current page.
Also there is a }
missing after the for
statement of prove function
Try using innerHTML
on a div
or some html element to overcome this issue.
Other than that I don't find any issues with your code
Solution 2:
The script is looking for a file named "dom.xml"
If you put that file in the same directory as the page above, you'll get different results.
Solution 3:
It looks like you are missing a bracket for the last function prove or the for loop.
Also you may want to declare
var xmlDoc = loadXMLDoc("dom.xml");
outside of each function, or add it to prove()
Post a Comment for "Is There An Error In My Code Or Does It Have To Do With My Firefox 12 Browser?"