< Smith >
with "Hello, Smith!" you could have it respond with "How are you doing Smith?"
onClick="document.NameIn.Output.value='Hello, '+document.NameIn.NameAns.value+'!'";so that in response to input of
< Smith >
and < Gold >
, your
output says "Hello Smith Gold!" To do this you need to ADD ( + ) the two input strings.