A POJO is simply an object built using a Java class that does not implement any special interfaces such as those defined
by the EJB 2 framework. An example of a POJO is a class composed by only:
Properties, representing the object’s state.
Getter and setter methods for the properties.
Business methods, representing behaviour.
Some properties can represent associations with other POJOs. Here is an example of implementation of the
Person entity using a POJO:
It is possible, using JavaScript, to call a function pertaining to the opener window, that is the window that, calling
window.open, opened the current window. The code to use is the following:
if (window.opener) {
window.close();
window.opener.foo("bar");
}
First it checks if the opener window is still open. In this case, it closes the current window and call the foo
function on the opener window.