Help with making ALT+F4/CTRL+W not work

An example would be when you didnt finish a Facebook post and when you try to close Facebook asks if you actually want to leave. How do you do that?