Making A Form That Adds To Links
Go to solution
Solved by elpiop,
<script> function setLink() { document.getElementById("link").href = "http://example.com/" + document.getElementById("my_input").value } </script> <form> <input type="text" id="my_input" oninput="setLink()"> <a href="http://example.com/" id="link"> Click me </a> </form>
-
Featured Topics
-
Topics
-
Lewjub ·
Posted in Troubleshooting0 -
Mark65428 ·
Posted in Peripherals1 -
Newbietobe5467 ·
Posted in Power Supplies0 -
2
-
TIGER SUS ·
Posted in Phones and Tablets0 -
FireLegend ·
Posted in Troubleshooting0 -
0
-
AngelaHornung ·
Posted in General Discussion0 -
0
-
7
-
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now