Welcome to WebmasterWorld Guest from 54.161.64.174

Forum Moderators: open

Message Too Old, No Replies

Inset iframe before div

insertBefore Menu

     
2:01 am on May 12, 2008 (gmt 0)

5+ Year Member



How come the the following code is not working? Please help...

function InitMainMenu() {
var obj = document.getElementById("menuBar");
var iframeMain = document.createElement("IFRAME");
iframeMain.frameBorder = 0;
iframeMain.style.width = document.body.clientWidth;
iframeMain.src = "javascript:false;";
iframeMain.style.zIndex = 5;
iframeMain.style.position = "absolute";
obj.parentNode.insertBefore(iframeMain, obj);
}

 

Featured Threads

Hot Threads This Week

Hot Threads This Month