Dynamically Update Fields
You are able to update values on your web page at "run-time", or dynamically based on user-input. To do this requires a little javascript. The example shown below will update a link based on user input in a text box.
<form name="form1">
<input type="text" name="test">
<a href="#" onClick="dynamicurl();">Click Here</a>
</form>
<script>
function dynamicurl()
{
location.href = document.form1.test.value;
}
</script>
<form name="form1">
<input type="text" name="test">
<a href="#" onClick="dynamicurl();">Click Here</a>
</form>
<script>
function dynamicurl()
{
location.href = document.form1.test.value;
}
</script>
Need assistance with your project? Universal Web Services can help.
Contact us to request a quote.