PDA

View Full Version : Javascript: Simple document.write() not working in firefox and ie



Metallion
16 Jan 2008, 01:24 PM
As the title says. I've got a javascript for printing out a menu. I think this is very convenient because then I don't have to put the same thing on every page that has the menu available. This script really doesn't do anything else than document.write()

For some reason however, this doesn't display in firefox nor ie. Both opera and konquerer show it perfectly. I find this very strange... Wasn't document.write pretty universal?

I've got my site up here for people who want to have a look.
http://users.telenet.be/Metallion/site/template.html

The javascript can be found here:
http://users.telenet.be/Metallion/site/script/script.js

Thanks in advance