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

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.