<form> <label> <input type="text" name="comp" id="comp" onkeyup="document.getElementById('result').innerHTML = this.value*1200;"> <br> </label> </form> <div id="result"></div>