Manage Learn to apply best practices and optimize your operations.

Closing a browser window

If you use multiple windows in your Domino application, you may want to close one of them programmatically.

In your form's JS Header, declare a variable called LotusWin:

 var LotusWin; On the form, create a button with the following JavaScript: LotusWin ='', 'LotusSite'); This opens a new window containing Lotus' web site. The name of the window is 'LotusSite'. The variable LotusWin now contains a pointer to this window. To close the window, you would think you could use: LotusWin.close(); ...but this doesn't work. Why? Because the Lotus web site contains frames. To force the closure of the browser window, you have to use:; This forces the close to happen at the top-level object of the LotusWin window -- the browser window itself rather than any frames.

 In form JS Header: var LotusWin; In button labeled 'Open': LotusWin ='', 'LotusSite'); In a button labeled 'Close':;
This was last published in April 2001

Dig Deeper on Domino Resources - Part 3

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.




  • iSeries tutorials's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...