input as html in console code example Example: input as html in console var value = document.getElementById("ElementID"); console.log(value);