#python #anaconda #jupyter-notebook #visual-code #html #css #javascript #http

제목html onclick 예제에 대한 질문입니다2021-11-27 14:42
작성자

교재에 나와있는대로 html 파일을 작성했는데

onclick 버튼을 눌러도 para의 말이 나오지 않습니다 ㅠㅠ


<!DOCTYPE html>

<html>

<head>

<title>My Dynamic Details Page</title>

<script type="text/javascrip">

function addParagraphText()

{

document.getElementById("para").innerHTML = "Thanks for adding text!";

}

</script>


</head>


<body>

<h1>Let's see a button</h1>


<button onclick="addParagraphText();"> Click Me</button>


<p id="para"></p>


</body>


</html>


어디가 문제인가요...?

댓글