When opening a new window use code like this:

windowname=window.open(...parameters here...)

This seems to be the only way of naming the actual object.

You can then use windowname.close().

Paolo

> -----Original Message-----
> From: Lovelock, Richard J [mailto:[EMAIL PROTECTED]
> Sent: 26 November 2003 10:45
> To: '[EMAIL PROTECTED]'
> Subject: RE: [ cf-dev ] window.close
> 
> 
> i have tried that but it is saying 'tom' is undefined - it is 
> asthough it is
> not recognising the name of the pop up window but i have specified it
> (perhaps incorrectly) ??
> 
> _______________________________________________________
> *  Regards, 
>                 Richard Lovelock 
> Westminster City Council - Web Support
> Cap Gemini Ernst & Young
> Southbank
> 95 Wandsworth Road
> London 
> SW8 2HG 
> (     0870 906 7482
>  
> _______________________________________________________
> 
> 
> -----Original Message-----
> From: Tomo Smith [mailto:[EMAIL PROTECTED]
> Sent: 26 November 2003 10:40
> To: [EMAIL PROTECTED]
> Subject: Re: [ cf-dev ] window.close
> 
> 
> I would go with Stephen's answer,
> tom.close();
> 
> That's what says in the clientside javascript reference from 
> the people that
> made JS in the first place..
> 
> ----- Original Message ----- 
> From: "Lovelock, Richard J" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, November 26, 2003 10:28 AM
> Subject: RE: [ cf-dev ] window.close
> 
> 
> > Stephen
> >
> > http://docserver.userland.com/window/close suggests otherwise??
> >
> > _______________________________________________________
> > *  Regards,
> >                 Richard Lovelock
> > Westminster City Council - Web Support
> > Cap Gemini Ernst & Young
> > Southbank
> > 95 Wandsworth Road
> > London
> > SW8 2HG
> > (     0870 906 7482
> >
> > _______________________________________________________
> >
> >
> > -----Original Message-----
> > From: Stephen Moretti [mailto:[EMAIL PROTECTED]
> > Sent: 26 November 2003 10:23
> > To: [EMAIL PROTECTED]
> > Subject: Re: [ cf-dev ] window.close
> >
> >
> > windows.close() doesn't take any attributes in the function 
> for window
> name.
> >
> > Grasping at straws.....  Try tom.close() instead.
> >
> > Stephen
> >
> >
> > Lovelock, Richard J wrote:
> > > Morning all
> > >
> > > I am trying to open a pop-up window using onMouseOver of 
> an image then
> > close
> > > the poped-up window with onMouseOut.
> > >
> > > Window pop-up fine but when 'mousing-out' it prompts 
> whether i want to
> > close
> > > window and if you select yes it closes the window 
> underneath not the
> > popped
> > > up one. Code is below. What am I doing wrong?
> > >
> > > <img src="images/tommotalks.gif" alt="View Tommo's match report"
> > > name="tommo" width="140" height="30" border="0" align="absmiddle"
> > > onMouseOver="MM_openBrWindow('/reports/matchreport' + #match_id# +
> > > 
> '.htm','tom','width=550,height=600,scrollbars=yes,top=200,left=350')"
> > > onMouseOut="window.close('tom')">
> > >
> > > You can see it below at
> > > http://fclounge.cfdeveloper.co.uk/matchreport.cfm?match_id=11
> > >
> >
> <http://fclounge.cfdeveloper.co.uk/matchreport.cfm?match_id=11
> &Allplayers=ye
> > > s> &Allplayers=yes
> > > on the Tommo Talks button
> > >
> > > 
> _______________________________________________________<?xml:namespace
> > > prefix = o ns = "urn:schemas-microsoft-com:office:office" />
> > >
> > > *  Regards,
> > >                 Richard Lovelock
> > >
> > > Westminster City Council - Web Support
> > > Cap Gemini Ernst & Young
> > > Southbank
> > > 95 Wandsworth Road
> > > London
> > > SW8 2HG
> > >
> > > (     0870 906 7482
> > >
> > > _______________________________________________________
> > >
> > >
> > >
> > >
> > > =======================================================
> > > This message contains information that may be privileged 
> or confidential
> > and is the property of the Cap Gemini Ernst & Young Group. 
> It is intended
> > only for the person to whom it is addressed. If you are not 
> the intended
> > recipient, you are not authorised to read, print, retain, copy,
> disseminate,
> > distribute, or use this message or any part thereof. If you 
> receive this
> > message in error, please notify the sender immediately and 
> delete all
> copies
> > of this message.
> > > =======================================================
> > >
> > >
> >
> > -- 
> > ** Archive: 
> http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> >
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > For human help, e-mail: [EMAIL PROTECTED]
> >
> >
> > =======================================================
> > This message contains information that may be privileged or 
> confidential
> and is the property of the Cap Gemini Ernst & Young Group. It 
> is intended
> only for the person to whom it is addressed. If you are not 
> the intended
> recipient, you are not authorised to read, print, retain, 
> copy, disseminate,
> distribute, or use this message or any part thereof. If you 
> receive this
> message in error, please notify the sender immediately and 
> delete all copies
> of this message.
> > =======================================================
> >
> >
> > -- 
> > ** Archive: 
> http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> >
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > For human help, e-mail: [EMAIL PROTECTED]
> 
> 
> -- 
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For human help, e-mail: [EMAIL PROTECTED]
> 
> 
> =======================================================
> This message contains information that may be privileged or 
> confidential and is the property of the Cap Gemini Ernst & 
> Young Group. It is intended only for the person to whom it is 
> addressed. If you are not the intended recipient, you are not 
> authorised to read, print, retain, copy, disseminate, 
> distribute, or use this message or any part thereof. If you 
> receive this message in error, please notify the sender 
> immediately and delete all copies of this message.
> =======================================================
> 
> 
> -- 
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For human help, e-mail: [EMAIL PROTECTED]
> 

-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to