I am trying to add permanent word to the textbox.in this text box it will take users firstname automatically when user enters the his name in the firstname textbox using onkeyup="copyText()" function.what i want to do is i want s to add permanent word to sitename textbox after getting automatically typed firstname.

Here is my code

```
<td><input type="text" id="fname" name="fname"   value=""  placeholder="Your First Name" onkeyup="copyText()"  required /></td>

<td><input type="text" id="sitename" name="sitename" value=""  placeholder="Your Site name" readonly/></td>

```

Here is my javascript code this is working

```
<script type="text/javascript">
    function copyText() {
        src = document.getElementById("fname");
        dest = document.getElementById("sitename");
        dest.value = src.value;
    }
</script>

```