I'd like to make an img visible but not with the tag but Javascript.How can I make the function work somehow?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>PingPongKép</title>
<link rel="stylesheet" href="CSS/style.css">
</head>
<body>
<script>
function ilonaKep(){
var ilona = document.createElement ("IMG");
x.setAttribute ("src", "img/ilona.jpg");
}
</script>
<p>Let's See the image</p>
<script>
ilonaKep();
</script>
</p>
</body>
</html>