Javascript Cannot Access Window Close Function In Desktop Application

Javascript Cannot Access Window Close Function In Desktop Application