Look into the following script , i have looked into it for hours , but didnt able to figure out what could possibly go wrong. var div = document.createElement("div"); div.id = "myDiv"; div.innerHTML = "Hello world"; div.className = "original"; //alert(div); var element =document.getElementById("t... element.id = "Location_Box_Relative"; var table = document.createElement("tab... table.className = "GeoTable"; table.setAttribute("border", "0"); table.setAttribute("hasLayo... "1"); var ......