Witam!
Mam problem z tym, że po zrobieniu kodu w js nie wygenerowało mi się hasło w htmlu.
<!DOCTYPE HTML>
<html lang="pl">
<head>
<meta charset="utf-8" />
<title>Szubienica</title>
<link rel="stylesheet" href="style.css" type="text/css" />
<script src="szubienica.js"></script>
</head>
<body>
<div id="pojemnik">
<div id="plansza"></div>
<div id="szubienica">
<img src="img/s0.jpg" alt="" />
</div>
<div id="alfabet"></div>
<div style="clear:both;"></div>
</div>
</body>
</html>
<!DOCTYPE HTML>
<html lang="pl">
<head>
<meta charset="utf-8" />
<title>Szubienica</title>
<link rel="stylesheet" href="style.css" type="text/css" />
<script src="szubienica.js"></script>
</head>
<body>
<div id="pojemnik">
<div id="plansza"></div>
<div id="szubienica">
<img src="img/s0.jpg" alt="" />
</div>
<div id="alfabet"></div>
<div style="clear:both;"></div>
</div>
</body>
</html>
var haslo = "Akoredeon";
function wypisz_haslo()
{
document.getElementById("plansza").innerHTML = haslo;
}
windows.onload = wypisz_haslo;