Javascript, Tables & InsertBefore
Posted In: JavaScript, firefox, Internet Explorer
Commentary
it'll be nice if anybody can give a solution for he above issue. i also faced a similar one and spending hours to fix it...
As I say above, you need to work on the tbody element of a table, not the table element itself. According to HTML specs, every table should have a tbody element.
Many thanks! I was stuck with this for a long while too.
Hey Robert! Thanks alot for posting I had the same problem :) thanks again!
Thanks a lot! Worked perfectly!
I have a similar problem on using insertBefore in Firefox. I am trying some code that it works on IE but it didn't on Firefox any suggestions? Please help and thanks a lot function function1() { var myElement = document.createElement(''); document.all.myDiv.insertBefore(myElement); } Insert element