The following works well while using NS or IE but not Opera.
In Opera, a blank window is opened.
Anyone have a suggestion on what to change to make it work in all
three?
Thanks for any and all help received.
<!--
function regwin(mylink, windowname, refocus)
{
var mywin, href;
if (typeof(mylink) == 'string')
href=mylink;
else
href=mylink.hre f;
mywin = window.open('', windowname);
// if we just opened the window
if (
mywin.closed ||
(! mywin.document. URL) ||
(mywin.document .URL.indexOf("a bout") == 0)
)
mywin.location= href;
else if (refocus)
mywin.focus();
return false;
}
//-->
In Opera, a blank window is opened.
Anyone have a suggestion on what to change to make it work in all
three?
Thanks for any and all help received.
<!--
function regwin(mylink, windowname, refocus)
{
var mywin, href;
if (typeof(mylink) == 'string')
href=mylink;
else
href=mylink.hre f;
mywin = window.open('', windowname);
// if we just opened the window
if (
mywin.closed ||
(! mywin.document. URL) ||
(mywin.document .URL.indexOf("a bout") == 0)
)
mywin.location= href;
else if (refocus)
mywin.focus();
return false;
}
//-->
Comment