Button element to close app


Hey Guys, everything is going okay with my app… But

For some reason i have a button and all i want to do is when that button is clicked it closes the app…
Looked all over and thought i would ask what to do here as i have set up my button and i have been using jquery to do the functions on the page… now i want to close the app when the button element is clicked… hope you guys can help??


The function you want (if you’re not already using it) is: require('remote').app.quit()


hey it did not work… I have basically a button tag with id, and i use jquery for the click function, but cannot get the app to close when button is clicked… Would you have any ideas?


Its cool I worked it all out…phew!!.. took forever, now i’m screaming for joy… LOL