<head>
[removed]
[removed] = function(){
var content = document.getElementById("content");
}
[removed]
</head>
<body>
<input id = "content" type ="text" size="10"/>
</body>
이렇게 텍스트창 하나 있는데 거기다 hello라고 적으면
문서객체인 content에 value값이 hello가 되게 어떻게 함?
<head>
[removed]
[removed] = function(){
var content = document.getElementById("content");
}
[removed]
</head>
<body>
<input id = "content" type ="text" size="10"/>
</body>
이렇게 텍스트창 하나 있는데 거기다 hello라고 적으면
문서객체인 content에 value값이 hello가 되게 어떻게 함?
document.getElementById("content").value 하니까 나오네 ㅅㅅ