forms[i].hidden.value
where "i" is your index of forms if you are working with frames,
if you are not you must put forms[0].
Maite
Damian O'Connor wrote:
Hi,I can't seem to find the answer to this on the forums although I'm sure it's there somewhere.
I have a hidden field hdHTML that contains some html code. I also have a javascript function
that I want to use to retrieve it and use it to open a new window.Any ideas how to get the value in the hidden field!
Cheers,
Damian<SCRIPT LANGUAGE="JavaScript">
<!--
imagename = ''
function enlrge(imgnme, form) {
lrgewin = window.open("about:blank","","height=200,width=400")
imagename = imgnme;
var htmlText = form.hdHTML;
setTimeout('update(htmlText)',500)
}function update(htmlText) {
doc = lrgewin.document;
doc.open('text/html');
doc.write(htmlText)
doc.close();
}On the button I have the following:
>
