there's not input console you can get the value from input in html ex: <input type="text" id="inp"> <button onclick="show()"></button> //javascript var text = document.getElementById("inp") function show(){ alert(text.value) }