I want to try & pass an element into a function, and call on it's properties & methods (bit like vb's Controls collection). Apparently this is possible in Javascript, using the name of the element rather than the element number/index.Code:Function CalledOn(elementTxtBox) { var paramElementTxtBox = form.elements.item(elementTxtBox); alert(elementTxtBox.value) } FunctionProper() { CalledOn(document.form.item("text1")) }
Anyone got any ideas how I can do this one please ?!?!?!?!
![]()
![]()
![]()
Cheers!




Reply With Quote