- 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 -<

Reply via email to