코드:
결과보기 »
<!DOCTYPE html> <html lang="ko"> <head> <meta charset="UTF-8"> <title>HTML input tag - type="button"</title> </head> <body> <form action="/examples/media/action_target.php" method="get"> <input type="button" value="클릭하세요!" onclick="popmsg()"> </form> <script> function popmsg() { alert("자바스크립트가 실행되었습니다!"); } </script> </body> </html>