script may close only the windows that were opened by them code example
Example: Scripts may close only the windows that were opened by them
open window with target="_blank"
and the perform window.close();
open window with target="_blank"
and the perform window.close();