faqts : Computers : Programming : Languages : JavaScript : Windows

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

9 of 25 people (36%) answered Yes
Recently 1 of 10 people (10%) answered Yes

Entry

Is there a way to refer to a window name to close a certain window if you give it a name when you open it from a window.open() statement?

Jan 18th, 2003 09:18
Robert Dill, Li Lim, Adam Burgess,


Hi there.

Yes, u can. For example, the 1st line opens a window called winname. 
The next line closes it.

winname = window.open('url.htm', 'winname', 'width="100",height="100");
winname.close();

Hope it helps! :>