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>
-
Topics
-
0
-
3
-
3
-
Gurky ·
Posted in Operating Systems4 -
4
-
joshfrog ·
Posted in Laptops and Pre-Built Systems3 -
1
-
DASADAS ·
Posted in Troubleshooting4 -
7
-
Poinkachu ·
Posted in Troubleshooting7
-
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