<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>JavaScript Simple Function</title>
</head>
<body>
<form>
<input type="button" value="Simple function"
onClick="msg();"/>
</form>
<script type="text/javascript">
function msg(){
alert("hello world!");
}
</script>
</body>
</html>