code part
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<button onclick="tc()">button 1</button>
<button onclick="tc2()">button 2</button>
<script>
function tc(){
alert('button 1');
}
function tc2() {
alert('button 2');
}
</script>
</body>
</html>
effect