The following works well while using NS or IE but not Opera.
In Opera, a blank window with no contents 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.href;
mywin = window.open('', windowname);
// if we just opened the window
if (
mywin.closed ||
(! mywin.document.URL) ||
(mywin.document.URL.indexOf("about") == 0)
)
mywin.location=href;
else if (refocus)
mywin.focus();
return false;
}
//-->
The following is how it is implemented:
<a href="register.php" onClick="return regwin(this, 'register',true)">link</a>