hi
i need to generate a row when a button is clicked on my web page. i wrote a code using for loop and attached it to the page using innerHTML. this works perfectly in IE, but fails in netscape. could someone outthere pls help me
i have attached the code i wrote below:
<head>
<title>
click to add more rows
</title>
<script language="javascript">
var bln
function generating()
{
var count;
var str="";
for(count=0;count<1;count++)
{
str=str+"<br><input type=text name=text " +count+ ">";
str=str+"<input type=text name=text"+count+">";
str=str+"<input type=text name=text"+count+">";
}
document.all.b.innerHTML=document.all.b.innerHTML+str;
}
</script>
</head>
<body>
<form name="f1">
<input type="button" value="click to add more rows" onclick="generating()" name=button1>
<br>
</form>
<DIV id="b">
</DIV>
</body>
thanks
prabhu(prabhu_sethuraman@yahoo.com)