I create one web page (which display details in table) using html & js. Which works on firefox but not in IE.
function frontEnd()
{
try{
th1 = document.getElementById('th1');
th1.firstChild.nodeValue = "Technology";
th2 = document.getElementById('th2');
th2.firstChild.nodeValue = "Level of knowledge";
t1 = document.getElementById('t1');
t1.firstChild.nodeValue = "HTML";
tl1 = document.getElementById('tl1');
tl1.firstChild.nodeValue = "5";
document.getElementById('MyTab').style.visibility="visible";
}
catch(e)
{
alert(e);
}
}
th1 is an id of table heading, t1,tl1 are data id. Actually am trying to display static values in table when user clicks button. It works sucessfully in firefox, not in IE. When click button using IE it reflects an error "[Object Error]" Please tel me how to made the same code to work in IE.
Thanks, Naveen
darioo
47.4k10 gold badges79 silver badges104 bronze badges
1 Answer 1
Why don't you use JQuery or Prototype JavaScript library , they are cross browser compatible.
Jquery
answered Jan 19, 2011 at 10:13
Dead Programmer
12.6k23 gold badges83 silver badges113 bronze badges
Sign up to request clarification or add additional context in comments.
Comments
lang-js