Click to See Complete Forum and Search --> : help with variables and dom


qphase
08-06-2003, 07:07 PM
I was wondering if there was a way to declare the name of a page element in dom, for instance,

function variable(avariable,anothervariable){
var avariable; var anothervariable;
document.avariable.anothervariable.value
}

any help would be greatly appreciated

Khalid Ali
08-06-2003, 07:31 PM
it seems like you want to read up on eval function

http://devedge.netscape.com/library/manuals/2000/javascript/1.3/reference/toplev.html#1063795

qphase
08-06-2003, 07:33 PM
Thanks, that's exactly what I was looking for. :)

Khalid Ali
08-06-2003, 08:07 PM
:D
cool
:D