Vetruvet Posted May 5, 2007 Share Posted May 5, 2007 I'm using innerHTML to detect what's in a table cell. I used the onclick event. It works fine in IE, but nothing happens in FireFox. I think it's because of the innerHTML. The page has been validated as XHTML transitional. onclick="disp_bio(memtable.cells[6].innerHTML)" "memtable" is the id of the table. "disp_bio" is a function that opens up a new window depending on what the parameter is.I need something to detect what's in the cell because the table sorts itself. Link to comment Share on other sites More sharing options...
Little Goat Posted May 5, 2007 Share Posted May 5, 2007 onclick="disp_bio(memtable.cells[6].innerHTML)"try this:onclick="disp_bio(document.getElementById(memtable).cells[6].innerHTML)" Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.