tpeck
12-06-2006, 05:17 AM
I want to load a popup - as chromeless as I can get it - centre screen.
This will almost do it, but regardless of my attempt to force focus, it stays behind the loader.
If I could get rid of the loader that would be nice, but I'm thinking that is impossible. Still, all I need for now is for the popup to come to the front.
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>loader</title>
<script LANGUAGE="javascript">
<!--
function popUp(URL,popW,popH) {
var topPos = (screen.availHeight-popH)/2, leftPos = (screen.availWidth-popW)/2;
mywin=window.open(URL,'popup','resizable=no, toolbar=no, location=no, status=no, scrollbars=no, menubar=no, titlebar=no, width=' + popW + ',height=' + popH + ',left=' + leftPos + ',top=' + topPos + ',screenX=' + leftPos + ',screenY=' + topPos);''
mywin.focus();
}
// -->
</script>
</head>
<body onload="javascript:popUp('mypopup.html',700,450)">
Any ideas as to what I'm doing incorrectly?
This will almost do it, but regardless of my attempt to force focus, it stays behind the loader.
If I could get rid of the loader that would be nice, but I'm thinking that is impossible. Still, all I need for now is for the popup to come to the front.
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>loader</title>
<script LANGUAGE="javascript">
<!--
function popUp(URL,popW,popH) {
var topPos = (screen.availHeight-popH)/2, leftPos = (screen.availWidth-popW)/2;
mywin=window.open(URL,'popup','resizable=no, toolbar=no, location=no, status=no, scrollbars=no, menubar=no, titlebar=no, width=' + popW + ',height=' + popH + ',left=' + leftPos + ',top=' + topPos + ',screenX=' + leftPos + ',screenY=' + topPos);''
mywin.focus();
}
// -->
</script>
</head>
<body onload="javascript:popUp('mypopup.html',700,450)">
Any ideas as to what I'm doing incorrectly?