You are here: DEVPPL Forum Programming Java Forum
NOTIFICATIONS
54.330
MEMBERS
15.720
TOPICS
62.407
POSTS
  562
FLASH GAMES
7.740
TUTORIALS
 

Login

E-mail:
Password:

make copy/paste and select all text area

0

Loading

make copy/paste and select all text area

Postby Skyonline » Sat Dec 12, 2009 4:46 am

hai..anbody can help me how to put copy/paste and select all in textarea (result)

Code: Select all
<script type="text/javascript">
function translate(phrase) {
   phrase = document.getElementById('input').value;
   phrase = phrase.replace(/why/g, "y");
   phrase = phrase.replace(/are/g, "r");
   phrase = phrase.replace(/you/g, "u");
   phrase = phrase.replace(/for/g, "4");
   phrase = phrase.replace(/to/g, "2");
   document.getElementById('output').value = phrase;
}
</script>

<textarea id="input"></textarea><br />
<input type="button" value="translate" onClick="translate();" /><br />
<textarea id="output"></textarea>
Skyonline
 
Reputation: 0
Posts: 16
Joined: Mon Jun 09, 2008 5:04 am
Highscores: 0
Arcade winning challenges: 0

make copy/paste and select all text area - Sponsored results

Sponsored results

Login to get rid of ads

 

^ Back to Top