WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 window.open like showModaDialog, Olga, August 11, 2004
     Re:window.open like showModaDialog, Rod, August 12, 2004

Subject: Re:window.open like showModaDialog From: Rod Date: August 12, 2004

You can do something like this in the popup window...  It's not perfect; but you ge the idea and you can probably expand on it.

var bStillInFocus = false;
function setStillInFocusTrue() { bStillInFocus = true; }
function setStillInFocusFalse() { bStillInFocus = false; }
function GetFocus() {
    if (!bStillInFocus) { self.focus(); }
}

window.onblur = GetFocus;
window.document.onmouseover = setStillInFocusTrue;
window.document.onmouseout = setStillInFocusFalse;


 

From: Olga
Sent: August 11, 2004
Subject: Re:window.open like showModaDialog

I have a parent page and this open a child page, I need to put a focus in the child page, so I put a focus in the child's body with onblur but the problem is that I have combo in this page, so when I want to select an item I can't because the page have an onlblur=myself.focus();... What can i do?





Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX