Newbie script problem...please help

M

Mike

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;
}
 
W

William Starr Moake

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

Onload popup windows suck. So many people now use popup stoppers it
won't be seen by many. Use a link to give the user the option of
opening a pop window.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top