Hey guys. Newbie to the forum. I’m sure my question is posted somewhere but I couldn’t really find anything.
This is really basic, but evidently I’m suffering from temporary Alzheimer’s.
I have and image map that uses a popup onCLick. It works fine in Firefox, but nothing else.
What is the [if] statement for browser detection. my small bit of script is below.
Thanks in advance.
function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == ‘string’)
href=mylink;
else
href=mylink.href;
window.open(href, windowname, ‘toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,directories=0,width=300,height=300,left = 490,top = 362’);
return false;
}