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
-
Gurky ·
Posted in Operating Systems2 -
2
-
joshfrog ·
Posted in Laptops and Pre-Built Systems1 -
1
-
DASADAS ·
Posted in Troubleshooting3 -
3
-
Poinkachu ·
Posted in Troubleshooting7 -
2
-
2
-
3
-
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