sayedsohail Posted September 13, 2007 Share Posted September 13, 2007 Hi i am trying to append a div inside the document, but its not working in IE and firefox. Here is my simple code. function buildDimmerDiv() { z=document.body.appendChild(document.createElement("div")); z.id = "dimmer"; z.style.width = window.screen.width+'px'; z.style.height = window.screen.height+'px'; } Link to comment https://forums.phpfreaks.com/topic/69189-solved-append-child-a-div-element-not-working/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.