Unable to display the link which is created Dynamically using Javascript:In FIREFOX
-
Hi All, I am displaying a anchor tag in a table which is created dynamically using Javascript. Below is the code for it. var EmpID = "E000011"; . . . . Td = document.createElement("td"); var anchorTag = document.createElement("a"); anchorTag.setAttribute("innerHTML",EmpID); anchorTag.setAttribute("href","example.html?EmpID="+numEmpID); Td.appendChild(anchorTag); Tr.appendChild(Td); . . . . This is working well in IE. Coming to Firefox the link button itself is not getting display. Can anyone help me out???????? Thanks, Shravanthi...
-
Hi All, I am displaying a anchor tag in a table which is created dynamically using Javascript. Below is the code for it. var EmpID = "E000011"; . . . . Td = document.createElement("td"); var anchorTag = document.createElement("a"); anchorTag.setAttribute("innerHTML",EmpID); anchorTag.setAttribute("href","example.html?EmpID="+numEmpID); Td.appendChild(anchorTag); Tr.appendChild(Td); . . . . This is working well in IE. Coming to Firefox the link button itself is not getting display. Can anyone help me out???????? Thanks, Shravanthi...
-
Hi, Try :
anchorTag.innerHTML = EmpID;
instead of :
anchorTag.setAttribute("innerHTML",EmpID);
Thanks for the answer.....We have already done with that :)