...

View Full Version : Correct Syntax Question



Fuego
08-06-2004, 09:56 AM
document.all.blok1.innerHTML

The bold text has to be the variable COUNT (which is a 1 now)
I tried this
document.all.["blok"+ count].innerHTML

but that doesnt work..Anyone can help me with the correct Synax?

jbot
08-06-2004, 10:02 AM
try:


document.all["block"][1].innerHTML

jbot
08-06-2004, 10:04 AM
remember document.all is IE only.

the cross-browser method is document.getElementsByName("block")[count].

Fuego
08-06-2004, 10:11 AM
Thnx a lot...First one works fine...and ive got 100% ie users



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum