Hi, I am trying to change pid in HTML Document by writing following in VBSCRIPT and I am having issue Dim pid pid = "print" & orderid 'Above is variable passed in vbdcript function which will be diff all the time <pid>.innerHTML = "Printed" "above should change text in HTML document with pid tag ...but I am getting error message object required.
mamin123@yahoo.com wrote: > Hi, > I am trying to change pid in HTML Document by writing following in > VBSCRIPT and I am having issue > > Dim pid > pid = "print" & orderid > 'Above is variable passed in vbdcript function which will be diff all > the time > > <pid>.innerHTML = "Printed" Have you tried... document.all(pid).innerHTML = "Printed" ....or... document.getElementById(pid).innerHTML = "Printed" > > "above should change text in HTML document with pid tag ...but I am > getting error message object required. -- Michael Harris Microsoft MVP Scripting