Tuesday, April 21, 2015

Closing the Current Window Using PeopleCode

When I typed peoplecode close window into my search engine, I got a lot of confusing articles saying essentially that it can't be done due to browser limitations, etc. I found out a way to do it, so I thought I'd share it.


Place an HTML Area on your page.  In the HTML Area, type something like this:


TITLE="Click here to close window" NAME="CloseWindow" >

The class attribute allows you to style the button with the same CSS style that the other buttons on your page are styled with.

I tried this in both Chrome (version 41.0.2272.118) and Firefox (version 37.01).