Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Inset iframe before div

insertBefore Menu

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

New User

5+ Year Member

joined:May 12, 2008
votes: 0

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);


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members