Edit in JSFiddle

function clickme(){
		window.alert("Hallo!");
}
<button onclick="clickme()">Klick mich!</button>