<button onclick="a(); b();">클릭1</button> <button onclick="(function() {c(); d()})();">클릭2</button> <script> function a() {alert('a');} function b() {alert('b');} function c() {alert('c');} function d() {alert('d');} </script> 결과보기
<button onclick="a(); b();">클릭1</button>
<button onclick="(function() {c(); d()})();">클릭2</button>
<script>
function a() {alert('a');}
function b() {alert('b');}
function c() {alert('c');}
function d() {alert('d');}
</script>
결과보기