Way to quit browser via web-page?


I've got a client that wants me to (somehow) create a button on a web-page that will quit the IE browser that comes preinstalled with Mac OS X, and launch another applicaiton.

Fortunately, this page will be launched via a CD-ROM, so I will have control over any processes that are run beforehand. Killing the IE process in Unix is simple, but I can't for the life of me think of how I can detect that a button has been pressed on a web-page and react to it, from outside the browser. The only think I can think of is to detect if a new cookie file has been written, but I don't believe cookie files get written until after the browser has been quit. There is a Javascript command to close the browser window, but that doesn't actually quit the browser.

Any help is greatly appreciated.