I have a number of <input> boxes named text1, text2 and a couple of <iframes> named strTextRichText1 & 2 and I want to use the following function to fill the input boxes.
<code>
function output(N)
{
document.forms[0][("text" + N)].value=[("strTextRichText"+N)].document.body.innerHTML;
}
</code>
The first substitution works fine
<code>
document.forms[0][("text" + N)].value
</code>
but not the next time:
<code>
[("strTextRichText"+N)].document.body.innerHTML;"
</code>
What am I doing wrong?
Bob Levien
<code>
function output(N)
{
document.forms[0][("text" + N)].value=[("strTextRichText"+N)].document.body.innerHTML;
}
</code>
The first substitution works fine
<code>
document.forms[0][("text" + N)].value
</code>
but not the next time:
<code>
[("strTextRichText"+N)].document.body.innerHTML;"
</code>
What am I doing wrong?
Bob Levien