# Basic javascript question: how to change paragraph text in realtime from an input box

**URL:** https://forum.kirupa.com/t/basic-javascript-question-how-to-change-paragraph-text-in-realtime-from-an-input-box/224150
**Category:** Uncategorized
**Created:** [April 29, 2007, 9:32am UTC](https://forum.kirupa.com/t/basic-javascript-question-how-to-change-paragraph-text-in-realtime-from-an-input-box/224150 "2007-04-29T09:32:07Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![tcav85](https://avatars.discourse-cdn.com/v4/letter/t/ecccb3/32.png) [@tcav85](https://forum.kirupa.com/u/tcav85)
#### Post date: [April 29, 2007, 9:32am UTC](https://forum.kirupa.com/t/basic-javascript-question-how-to-change-paragraph-text-in-realtime-from-an-input-box/224150/1 "2007-04-29T09:32:07Z")

</div>

If i have an input box where a new user can enter their desired username, can i have some paragraph text on the same page update to show this username, as they type?

so if the user wants the username of ‘bob’, as they type they will see that their url on the site would be [http://site.com/user/bob](http://site.com/user/bob) - and this would change as they type.

i’ve seen it done on imagekind and wondered if anyone has any clues? many thanks.
