How do i make it do

I have a button that says quit. How do i make it so when the user clicks on it it closes thee window the flash is playing on ie newgrounds flash window. Starts, click quit, quits the active window.