Click here for important information about

hyperlink generation with textbox

April 12, 2012 at 23:21:07
Specs: Windows XP, about 4 gb
how do i generate hyperlink, partially using textbox(html)?
this is what i need:
a textbox, with a submit button; when the button is pressed it wil link to a site like:
but the textbox has to add something to the link:

See More: hyperlink generation with textbox

April 13, 2012 at 02:12:55
Have you tried something like?
(beware: untested code, will need tweaking)

<script language="javascript">
function goToUrl()
var textbox = document.getElementById("myTextBoxId");
var url = "";
if (textbox != null && textbox != "undefined" && textbox.value != null && textbox.value.length > 0)
url = url + textbox.value;
window.location = url;


< a href="javascript:goToUrl()">Go!</a>



Elinor Hurst

Report •
Related Solutions

Ask Question