Graeme06
Technical User
- Jun 6, 2006
- 60
I'm working on some Javascript embedded in an HTML file that is organized using CSS. Now this seems to make it act really funny. For one thing, the document.write() writes to a new page instead of the current one. (it works fine for the page loading, but if you have an onclick with a document.write(), it doesn't work.
As well I have the code:
function visi(){
document.all['external'].style.visibility = "hidden";
}
Which is supposed to make something ('external') invisible. This works great in a plain HTMl file, but as soon as I paste it into my page with CSS it doesn't do anything.
Is there a way to fix this, possibly replace the "document" in document.write() with another word?
Thanks,
Graeme
As well I have the code:
function visi(){
document.all['external'].style.visibility = "hidden";
}
Which is supposed to make something ('external') invisible. This works great in a plain HTMl file, but as soon as I paste it into my page with CSS it doesn't do anything.
Is there a way to fix this, possibly replace the "document" in document.write() with another word?
Thanks,
Graeme