# About input and output text boxes. Why is this simple code not working?

**URL:** <https://forum.kirupa.com/t/about-input-and-output-text-boxes-why-is-this-simple-code-not-working/329122>\
**Category:** Uncategorized\
**Created:** [July 23, 2012, 9:25am UTC](https://forum.kirupa.com/t/about-input-and-output-text-boxes-why-is-this-simple-code-not-working/329122 "2012-07-23T09:25:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajoo](https://avatars.discourse-cdn.com/v4/letter/a/ebca7d/32.png) [@ajoo](https://forum.kirupa.com/u/ajoo)\
**Post date:** [July 23, 2012, 9:25am UTC](https://forum.kirupa.com/t/about-input-and-output-text-boxes-why-is-this-simple-code-not-working/329122/1 "2012-07-23T09:25:51Z")

</div>

Hi All,

I wrote a simple bit of code for getting an input and then displaying the same in an outbox for a certain amount of time. I used the setInterval function to set the time for which the output should be displayed.

SO why should this code not work. I must be making a very basic mistake. Just an amateur so please bear.

Thanks all in advance,  
Ajoo.
