preview script

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
m2babaey
Forum Contributor
Posts: 364
Joined: Sun May 20, 2007 9:26 am

preview script

Post 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.
User avatar
Gente
Forum Contributor
Posts: 252
Joined: Wed Jun 13, 2007 9:43 am
Location: Ukraine, Kharkov
Contact:

Post by Gente »

I'm confused. Where you should write the text? What should be in preview. And what do you mean under preview?
miro_igov
Forum Contributor
Posts: 485
Joined: Fri Mar 31, 2006 5:06 am
Location: Bulgaria

Post by miro_igov »

Here is

Code: Select all

<input type="text" onkeyup="document.getElementById('output').innerHTML = this.value" />
<div id="output"></div>
m2babaey
Forum Contributor
Posts: 364
Joined: Sun May 20, 2007 9:26 am

Post by m2babaey »

thanks :P
Post Reply