Hi
What's wrong with this code?
-- code start --
1 function pdf() {
2 flt = "source"+document.form1.elements["ReferencesSTD"].value;
3 if (document.all.flt1.innerText == ""
{
4 document.all.pdf.innerText = "";
5 }
6 else {
7 document.all.pdf.innerText = "<a href='"+flt+"' target='_new'><img src='images/pdf.gif' title='Click to see the standard in PDF!'></a>";
8 }
9 }
-- code end --
The variable flt eg. contains "source3", but everytime i run the code it says error in line 3. "Is null or not an object!"
Can someone tell me what's wrong?
/Peter Larsen
What's wrong with this code?
-- code start --
1 function pdf() {
2 flt = "source"+document.form1.elements["ReferencesSTD"].value;
3 if (document.all.flt1.innerText == ""
4 document.all.pdf.innerText = "";
5 }
6 else {
7 document.all.pdf.innerText = "<a href='"+flt+"' target='_new'><img src='images/pdf.gif' title='Click to see the standard in PDF!'></a>";
8 }
9 }
-- code end --
The variable flt eg. contains "source3", but everytime i run the code it says error in line 3. "Is null or not an object!"
Can someone tell me what's wrong?
/Peter Larsen