Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (20 sloc) 0.517 kb
<!DOCTYPE html>
<html>
<head>
<title>script内の関数を実行</title>
<meta charset="UTF-8">
</head>
<body>
<p id="text">〇〇〇</p>
<script>
//DOMがすべて構成されてから、filltextが実行されるようにイベントリスナーを設置する。
document.addEventListener("DOMContentLoaded",filltext(),true);
//textを埋めるためのscript
function filltext()
{
var text = document.getElementById("text");
text.innerHTML = "Hello World";
}
</script>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.