+ 1

How to use an id given to an<input>?

how can i use the value entered by the user in the text box. for eg-if value entered is "abc" then windows.session=www.google.com

23rd Apr 2017, 8:00 AM
AK01
AK01 - avatar
1 Odpowiedź
+ 24
<input id=in onchange=if(document.getElementById("in").value=="abc"){...}> (or "oninput")....
23rd Apr 2017, 8:11 AM
Valen.H. ~
Valen.H. ~ - avatar