«
XUL Reference home
onclosetab
Type:
script code
This script will be called when the close tab button is clicked.