편집 강령:
결과보기 »
그것을 자신을 시도 - ©
w3ii.com
<
!DOCTYPE
html
>
<
html
>
<
body
>
<
p
>
In HTML, JavaScript statements are "commands" to the browser.
<
/p
>
<
p
id
="demo"
>
<
/p
>
<
script
>
document.getElementById(
"demo"
).innerHTML =
"Hello Dolly."
;
<
/script
>
<
/body
>
<
/html
>
<!DOCTYPE html> <html> <body> <p>In HTML, JavaScript statements are "commands" to the browser.</p> <p id="demo"></p> <script> document.getElementById("demo").innerHTML = "Hello Dolly."; </script> </body> </html>