I found this javascript code here: http://raghunathgurjar.wordpress.com/20 ... avascript/ I pasted this bit:
{
var win = window.open("","_self"); /* url = "" or "about:blank"; target="_self" */
win.close();
}
into a field called "closeMe" and then used the exeJavascriptDirect() function with [commandString] text of field "closeMe" and ... it works!

I then tried to use an identical system in a second window that I open with subModal() and it doesn't work.

Any ideas please? It's not a big deal but I'd like to know why.
John