Page 1 of 1

preview script

Posted: Thu Jul 26, 2007 11:19 pm
by m2babaey
Hi
is there any java script ( or other languages) that allows previewing the text you write in a field? (common example is when you want to write a text ad , you can preview your ad as you type)
my google search for "java preview script" had trash result.

Posted: Fri Jul 27, 2007 3:09 am
by Gente
I'm confused. Where you should write the text? What should be in preview. And what do you mean under preview?

Posted: Fri Jul 27, 2007 3:31 am
by miro_igov
Here is

Code: Select all

<input type="text" onkeyup="document.getElementById('output').innerHTML = this.value" />
<div id="output"></div>

Posted: Fri Jul 27, 2007 4:53 am
by m2babaey
thanks :P