I'm trying to make html page with three items on it. There are input, button and tag p like output on the page.
<head>
<meta charset="utf-8">
<title>input output</title>
<script text="text/javascript"src="./scripts/Calc.js"></script>
</head>
<body>
<form>
<input type="text" placeholder="0,00" name="mpminput" id="mi">
<button type="submit" onclick="mpmInput()">Enter</button>
<p id="oq"></p>
</form>
</section>
</body>
And javascript file
let mpmi;
function mpmInput() {
mpmi = document.getElementById("mi").value;
document.getElementById("oq").innerHTML=mpmi;
}
I want to see the number which I entered in the input field. It works partly. When I pressed button the number appears but quickly disappears after that. I work in trebedit ide on the tablet. It has own browser. I can open this page in the chrome. But browser after pressing button gives me the message "the file could not be accessed" err_file_not_found. How can I fix this problem?