Newbie script problem...please help

Giganews Newsgroups
Subject: Newbie script problem...please help
Posted by:  michael_c_wrob…@hotmail.com (Mike)
Date: 11 Jul 2003

I am pretty new to JavaScript and just recently started helping to
admin a web page.  I have the script that the previous admin was using
to generate a small pop-up window when the main page loaded but he set
it to 'null' and I am trying to make it active again and I can't
figure out how to do so.  I have tried changing a few things that I
thought would be obvious but nothing worked.  Any help would be
GREATLY appreciated.  I have pasted the code here to see.  Thanks

Mike

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, 'width=300,height=300,scrollbars=no');
return false;
}

Replies