View Full Version : Something silly

10-24-2005, 10:57 AM
Hi all,

Making a mess of this, simple problem... Help!! :o

function MakeVis(MenuID) {

document.write(MenuID) produces the text "Menu1"
Now I know MenuID is a variable and I want to reflect this in the document.all line but Its just not happening. What am I doing wrong?

10-24-2005, 11:27 AM
a lot of things are wrong.

I guess that you wanted to do something like this

function MakeVis(MenuID){

Anyway, can we see the whole code? What is your final purpose?

10-24-2005, 11:55 AM
That is all the code :)

All sorted now anyway. Sorry for the trouble, Hadn't woken up yet. Thanks for the reply though. :)

10-24-2005, 11:58 AM
document.all is an IE only reference. I strongly advice you to use
document.getElementById(someid) instead

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum