>- see footer for list info -<
so the link either has a url, width and height, or just the url?  

if (arguments.length != 3)
{
// didn't pass in the width and height parameters
 var sWidth = 600;
 var sHeight = 400;
}

Duncan Cumming
New Media Developer
Customer Relations Management / Education
Fife Council
700 4105 / 01592 414105

>>> [EMAIL PROTECTED] 28/07/2006 10:11:50 >>>
>- see footer for list info -<
Hi all,

not too au fait with js, and I'm sure this is stoopidly simple!

I have an window.open JS function as follows:

<!-- Begin
function popUp(sURL,sWidth,sHeight) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(sURL, '" + id + "', 
'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=' 
+ sWidth + ',height=' + sHeight + '');");
}
// End -->


I can set width/height in the link I use to  open a new window. However, 
I want to be able to set defaults for width/height in this function in 
case my link doesn't contain these params. How do I specify this in the 
function?

Thanks, Damien
_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo 

--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<


**********************************************************************
This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed and 
should not be disclosed to any other party. 
If you have received this email in error please notify your system manager and 
the sender of this message.

This email message has been swept for the presence of computer viruses but no 
guarantee is given that this e-mail message and any attachments are free from 
viruses.

Fife Council
Tel: 08451 55 00 00
************************************************

_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to