DIGIT-ARC read-only archive · snapshot: July 23, 2026

Take value from textbox and add to url

3 posts · originally from https://geek.digit.in/community/threads/take-value-from-textbox-and-add-to-url.149909/

Nipun
Nipun Original post #1
Dec 12, 2011 at 3:41 PM
Hello!
Is it possible to take value from a textbox and add it to URL in HTML?
For example, if text in textbox is "Nipun", then add this to "google.com/search?q=" & make it Nipun - Google Search ?

If its not possible in HTML, then which language can do this and how? :D
buddyram
Dec 12, 2011 at 6:31 PM
HTML is a markup language, u cant do the above task with it.
Use any other Language preferably server-side language to pass the value thru URL
nims11
nims11 #3
Dec 12, 2011 at 8:59 PM
javascript

Code:
window.location=url("google.com/search?q="+document.getElementById('[I]textboxId[/I]').value);