Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
- <title>Testing</title>
- </head>
- <body>
- <form>
- <input type="text" name="Input" id="textBox">
- <input type="button" value="Submit" onclick="myFunction()">
- </form>
- <p id="debugText">Verdien er: </p>
- </body>
- <script>
- function myFunction() {
- var value = document.getElementById("textBox").value;
- document.getElementById("debugText").innerHTML = value + " er kul";
- console.log("click")
- }
- </script>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement