Javascript Modal Window Close On Clicking Outside Stack Overflow

Javascript Modal Window Close On Clicking Outside Stack Overflow