` function Input2() {
let a = document.getElementById(“Input”).value
document.write(a)
} ` ( this is my code that i am using for onclick function of button tag in html)
[][1]
[1]: https://i.stack.imgur.com/fZvSK.png![enter image description here](https://i.stack.imgur.com/DFjK2.png)