[thelist] not sure if this went through -- if so sorry for repost

dwayne dwayne at iconys.com
Fri Jun 15 19:21:49 CDT 2001


oops - i didn't read that closely enough. you have the popUp() function in 
the parent page calling focus() on itself. and rudy's right, 
<BODY onLoad="self.focus">
needs the () after it.

for what it's worth, this is the code i've been using, all in the page 
calling the popup:

<script language="JavaScript1.1">

<!--
// AOL detect
// some AOL browsers have trouble with pop up windows
var aol = false;
if (navigator.userAgent.indexOf("AOL") != -1) {
        aol = true;
}

var pop_win;
function popIt() {
    if (!aol) {
        pop_win=window.open('/page.html',
        'display',
        'scrollbars,width=400,height=450');
                if (!pop_win.opener) {
                        pop_win.opener=window;
                }
                setTimeout('pop_win.focus()', 500);
        } else {
                top.location='page_low.html';
        }

}
//-->
</script>

and triggering it with:
<a href="/page.html" onclick="popIt(); return false;">

not sure if it's the best way, but it should get you going tonight.


- dwayne




More information about the thelist mailing list