Append URL with form input
问题 This is my first attempt to write anything in javascript, although this does exactly as intended, I am sure it can be done simpler. Not that this script is all that useful, just an exercise in learning something new. I was also trying not to use the evil document write. So what is the more elegant way of doing this? <html> <body> <input name="abc" type="text" id="foo"> <button onclick="AddInputValue()">Submit</button> <p id="displayURL"></p> <script> function AddInputValue(){ var domain =