The moose likes HTML, CSS and JavaScript and the fly likes innerHtml not working in Mozilla Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "innerHtml not working in Mozilla" Watch "innerHtml not working in Mozilla" New topic

innerHtml not working in Mozilla

Shreyash Thakre

Joined: Oct 06, 2009
Posts: 6

I am having the following code in my js file for innerHtml(for dynamically adding rows on jsp page)...but it is not working in Mozilla, it works fine IE.

I faced the same problem everywhere were I used innerHtml, so can anyone please tell me the other way out for this, so that it works fine in Mozilla..

var len = datamain3.rows.length;
var rowcnt = datamain3.insertRow(len);
var c0 = rowcnt.insertCell();

Thanks & Regards
Shreyash Thakre
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
Why don't you show us the version that fails.

What problem are you having with insertRow() and insertCell()?

I agree. Here's the link:
subject: innerHtml not working in Mozilla
It's not a secret anymore!