Hello,
Can anyone help with this. I am trying to combine 2 text fields into 1 text field. I found this which works when you select the button. But I do not want the function to happen when the button is selected. I want the function to occur when the person finishing entering the information in Last Name field.
<p><form name="Form1">
<br>
<tt>First Name:</tt> <input name="FirstName">
<br>
<br>
<tt>Last Name:</tt> <input name="LastName">
<p><tt>Phone Number :</tt>
<input name="Phone Number" id="Phone Number">
</p>
<p><tt>Email Address :</tt>
<input name="Email Address" id="Email Address">
</p>
<p> <tt>realname:</tt>
<input name="realname" readonly="true">
</p>
<p><br>
<input type="button" value="Combine Strings"
OnClick="realname.value= FirstName.value + ' ' + LastName.value;"></p>
</form>
Can anyone help with this. I am trying to combine 2 text fields into 1 text field. I found this which works when you select the button. But I do not want the function to happen when the button is selected. I want the function to occur when the person finishing entering the information in Last Name field.
<p><form name="Form1">
<br>
<tt>First Name:</tt> <input name="FirstName">
<br>
<br>
<tt>Last Name:</tt> <input name="LastName">
<p><tt>Phone Number :</tt>
<input name="Phone Number" id="Phone Number">
</p>
<p><tt>Email Address :</tt>
<input name="Email Address" id="Email Address">
</p>
<p> <tt>realname:</tt>
<input name="realname" readonly="true">
</p>
<p><br>
<input type="button" value="Combine Strings"
OnClick="realname.value= FirstName.value + ' ' + LastName.value;"></p>
</form>