JanetBruten 0 Newbie Poster

Hi, I'm having problems with IE6 compatibility for a website I am building. I have a simple script that opens a new window. It works fine in Firefox, and with Netscape if the appropriate tab settings are made. But not with IE6. I assume it is something to do with the pop up blocking that is new in IE6, but I have followed the guidance on the MSDN site and still no joy. I'm obviously doing something really daft, but could really do with some help!

The script I am using is as follows:

<script TYPE="text/javascript">
<!--
function popupterms(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
href=mylink;
else
href=mylink.href;
window.open(href, windowname, 'width=550,height=600,scrollbars=yes,left=0,top=0');
return false;
}
// -->
</script>

Cheers for any help.

Janet.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.