B
Braden.Bowers
I'm trying to create a dynamically generated link on my website that
takes user input from a text field to generate the link.
< HTML FILE >
<input id="tbxStuff" name=\"tbxStuff\" type="text" value="">
<a id="lnkSubmit" target="_blank" href="" onclick="myFunction(this);
return false;"> GO </a>
< JAVASCRIPT FILE >
function myFunction(this)
{
this.location.setAttribute('href') = "MyNewLink" +
frmPrimary.tbxStuff.value;
}
I've tried several other variations of this but nothing I've found is
working yet this was my latest attempt. I apprecate any help with this
problem.
Thanks
Braden Bowers
takes user input from a text field to generate the link.
< HTML FILE >
<input id="tbxStuff" name=\"tbxStuff\" type="text" value="">
<a id="lnkSubmit" target="_blank" href="" onclick="myFunction(this);
return false;"> GO </a>
< JAVASCRIPT FILE >
function myFunction(this)
{
this.location.setAttribute('href') = "MyNewLink" +
frmPrimary.tbxStuff.value;
}
I've tried several other variations of this but nothing I've found is
working yet this was my latest attempt. I apprecate any help with this
problem.
Thanks
Braden Bowers