you *CAN* cheat sometimes

"How do you programmatically close a browser window when you didn't open
it?"

find out on
http://www.aspalliance.com/peterbrunone/impossible.asp

cheers
barry.b


-----Original Message-----
From: Steve Onnis [mailto:[EMAIL PROTECTED]
Sent: Monday, 21 July 2003 1:41 PM
To: CFAussie Mailing List
Subject: [cfaussie] RE: [OT] JS close window


am pretty sure you can only do that from the page which opened the window.
This is because its the browser that has given the window the name and knows
what it is.  Any other page will not know whar newWin referes to.

You may have to do it via the window its self

window.open("myPage.html","newWin");

newWin.close();

Steve

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Taco Fleur
Sent: Monday, July 21, 2003 1:33 PM
To: CFAussie Mailing List
Subject: [cfaussie] [OT] JS close window


Easy question...

I open a new window like

newWin = window.open(...... etc.

Then on a different page I would like to close this new window, should the
folling not do this?

window name.close() i.e. newWin.close()

??

It is not working, am I missing something?
Cheers.

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to
[EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to
[EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to