Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

focus on popup onclick fullscreen background window

Status
Not open for further replies.

PS1983

Technical User
Nov 6, 2001
83
AT
Hi!
i used to have the onBlur=self.focus, but then the menu didn't respond;

i have this background window which is fullscreen and the popup window which is in the foreground

how can i manage to:
onCLick on the background window then focus on the popup window?
write in the backgound window onUnBlur="popup.focus or how should i do

plz help
 
You can talk to the child window, try :

<script language=&quot;JavaScript&quot;>
var objWindow;
function popup(url) {
objWindow = window.open(url,'Window_1', 'scrollbars=no,toolbars=no,hotkeys=no,menubar=no,location=no,statusbar=no,width=10,height=10')
}
</script>
<body onload=&quot;popup('test.htm')&quot; onUnBlur=&quot;objWindow.focus()&quot;> Regards

Big Dave

davidbyng@hotmail.com


** If I am wrong I am sorry, but i'm only trying to help!! **

 
hmm write that in the fullscreen window that makes the popup window right?

doesn't work until now heres the source for the fullscreen window that makes the popup:

something wrong here?

<html>
<head>
<title>ABmobili</title>

<SCRIPT LANGUAGE=&quot;JavaScript&quot;>
var win3;
function center()
{

win3=window.open(&quot;index_start.html&quot;,&quot;&quot;,&quot;width=480, height=543, resizable=no&quot;);
win3.moveTo(screen.width/2-250,screen.height/2-300);
}


</script>

</head >

<body bgcolor=&quot;#000000&quot; onload=&quot;center()&quot; onUnBlur=&quot;win3.focus()&quot; link=&quot;#800000&quot; vlink=&quot;#800000&quot; alink=&quot;#ff0000&quot; topmargin=&quot;0&quot; leftmargin=&quot;0&quot; scroll=&quot;no&quot;>
</body>
</html>

please tell me

thx
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top