You need a new name for the window, so add an instance variable and append
it's value to strTitle.

I added to the code below.

Greg Alton
CFDev



> I am using the following code to open a new window.  However when one
> window has already been spawned from the opener, any more new windows
> simply re-use the same one.  I need to open a new window every time,  (My
> users REALLY want to annoy themselves;-)  Can anyone tell me how to get
the
> below code to do such a thing?
>
> <SCRIPT LANGUAGE=javascript>
> <!--
> function OpenWindow(strURL, strTitle, intWidth, intHeight)
>          {
>                  var intWindowLeft
>                  var intWindowTop
>                  var msgWindow
                    if (myWindowInstance) {
                        myWindowInstance++;
                    }else {
                        myWindowInstance = 1;
                    }
>

>                  // find out the numbers to center the screen.
>                  intWindowLeft = (screen.width - intWidth) / 2;
>                  intWindowTop = (screen.height - intHeight) / 2;

                    //Make the new window name
                    strTitle = strTitle + myWindowInstance;
>
>                  msgWindow =
>
window.open(strURL,strTitle,'toolbar=0,location=0,directories=0,status=0,men
ubar=0,scrollbars=0,resizable=0,width='
> + intWidth + ',height=' + intHeight + ',left=' + intWindowLeft + ',top=' +
> intWindowTop);
>          }
> //-->
> </SCRIPT>
> Thanks!
>
>
> Ray Bujarski
> 858-845-7669
> 858-636-9900 pgr
> [EMAIL PROTECTED]
>
> 
______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to