How do I condition an user input for a placeholder to a link? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

How do I condition an user input for a placeholder to a link?

I want to create a placeholder that sends the user to a link conditioned upon what input the user types...

9th Jan 2017, 4:53 PM
John Ahmrain
John Ahmrain - avatar
1 Resposta
+ 3
make a input field and a button to the button you have to assign a on click js function int the js function you can select the input field and get its .value (you should store it in a variable) now use this js code: location.href = (your variable goes here);
9th Jan 2017, 5:03 PM
Kamil
Kamil - avatar