<!DOCTYPE html>
<html lang="cs">
<head>
    <meta charset="utf-8" />
    <title>Titulek</title>
</head>
<body>
 <input id="vstup" type="text" onchange="pocitej()">
 
    <script>
    /* <![CDATA[ */
    /* Sem prijde javascript kod */
	function pocitej(){
	   vstup = document.getElementById('vstup')
	   console.log("a")
	   console.log(vstup.value)
	 }
    /* ]]> */
    </script>
</body>
</html>