Test: Js & Inputforms

<input id="inputfelt">
<button type="button" onclick="myFunction()">Submit</button>

<p id="outputfelt"></p>

<script>
function myFunction() {
  var svar = document.getElementById("inputfelt").value;
  document.getElementById("outputfelt").innerHTML = svar;
}
</script>

Output

Scroll to Top