[Javascript] Window names

dave tee teedave at hotmail.com
Wed Aug 15 06:09:13 CDT 2001


I have a related question while we're on the topic. I assume once a new 
window has been opened with a unique name it can be referenced by that name. 
I have tried a number of ways to close another window from a remote page 
(using its name) but cant seem to get it to work.

Is this possible? and if so how can I reference the window name remotely?

dave


>From: "Josiah Gordon" <jgordon at directfile.com>
>Reply-To: javascript at LaTech.edu
>To: <javascript at LaTech.edu>
>Subject: RE: [Javascript] Window names
>Date: Tue, 14 Aug 2001 12:55:13 -0700
>
>Esther,
>
>Have you tried setting the window name to "_blank" (without quotes)? I 
>don't
>know if this is  exactly what you want, but it should *always* open a new
>window. Generally, the method you are using is better because you keep an
>explicit reference to the windows.
>
>
>--Josiah Gordon
>
>-----Original Message-----
>From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On
>Behalf Of Peter Brunone
>Sent: Tuesday, August 14, 2001 12:46 PM
>To: javascript at LaTech.edu
>Subject: Re: [Javascript] Window names
>
>
>
>     I just pasted and tried your code... and I get different windows.  Is
>there perhaps a browser setting that does this?
>
>----- Original Message -----
>From: <Esther_Strom at hmco.com>
>To: <javascript at LaTech.edu>
>Sent: Tuesday, August 14, 2001 2:32 PM
>Subject: Re: [Javascript] Window names
>
>
>|
>| This is my openWin function.
>|
>| function openWin(url,winName,width,height,options){
>|     var winHeight = parseInt(height);
>|     var winWidth = parseInt(width) + 15;
>|     var winOptions
>| = "location=no,toolbar=no,menubar=yes,resizable=yes,scrollbars=yes";
>|     popupWin = window.open(url,winName,'width=' + winWidth + ',height='+
>| winHeight +','+winOptions);
>| }
>|
>| There is absolutely no way I can have a new window variable for every
>| window I need to open - I use this function in dozens of places.
>|
>| Esther
>|
>|
>|
>|
>|                     "Peter Brunone"
>|                     <peter at brunone.co        To:
><javascript at LaTech.edu>
>|                     m>                       cc:
>|                     Sent by:                 Subject:     Re: 
>[Javascript]
>Window names
>|                     javascript-admin@
>|                     LaTech.edu
>|
>|
>|                     08/14/01 02:26 PM
>
>|                     Please respond to
>|                     javascript
>|
>|
>|
>|
>|
>|
>| Esther,
>|
>|     In your openWin function, are you assigning the window.open to the
>same
>| variable each time?
>|
>| ----- Original Message -----
>| From: <Esther_Strom at hmco.com>
>| To: <javascript at LaTech.edu>
>| Sent: Tuesday, August 14, 2001 2:17 PM
>| Subject: [Javascript] Window names
>|
>|
>| | Help! I was under the impression that you could open multiple popups as
>| | long as each one had a unique name. In the following code, when I click
>| one
>| | of the links (any of them), it opens one popup. When I click any of the
>| | other links, instead of opening a second window, it replaces the 
>content
>| of
>| | the first popup. (This is part of a Domino database, hence the 
>?OpenForm
>| in
>| | lieu of file extensions.)
>| |
>| | What am I doing wrong?
>| |
>| | <a href="javascript:openWin
>| |
>|
>('fmUsage?OpenForm&~E3F2E18403B0E9DE86256977005ECD24','myUsg2',850,600)">Usa
>|
>| ge</a>
>| |
>| | nbsp;&nbsp;
>| | <a href="javascript:openWin
>| |
>|
>('fmUsageSingle?OpenForm&~E3F2E18403B0E9DE86256977005ECD24','myUsg3',850,600
>|
>| )">Usage
>| |
>| | 2</a>&nbsp;&nbsp;
>| | <a href="javascript:openWin('fmImage?OpenForm','myImg',770,500)
>| ">Image</a>
>| | &nbsp;&nbsp&nbsp;&nbsp&nbsp;&nbsp;
>
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>http://www.LaTech.edu/mailman/listinfo/javascript
>
>
>---
>Incoming mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.268 / Virus Database: 140 - Release Date: 8/7/2001
>
>---
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.268 / Virus Database: 140 - Release Date: 8/7/2001
>
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>http://www.LaTech.edu/mailman/listinfo/javascript


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




More information about the Javascript mailing list