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...
1 Answer
+ 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);