Witam moze mi ktos powiedziec dlaczego haslo sie nie wyswietla?
Robie poradnik pana Miroslawa : https://youtu.be/9FVtiJHFCSU
HTML:
<!doctype html>
<html>
<head>
<title>Gallows</title>
<meta charset = "utf-8">
<link rel="stylesheet" href="style.css" type="text/css" />
<script src="gallows.js"></script>
</head>
<body>
<div id="container">
<div id="board">
</div>
<div id="gallows">
<img src="img/s0.jpg" alt="gallows">
</div>
<div id="alphabet">
</div>
<div style="clear: both;">
</div>
</div>
</body>
</html>
JS :
var haslo = "Incisive Media";
function wypisz_haslo()
{
document.getElementById("board").innerHTML = haslo;
}
window.onload = wypisz_haslo();