| You are here: DEVPPL ‹ Forum ‹ Programming ‹ Java Forum |
NOTIFICATIONS
|
|
|||||||||||||||
Login |
make copy/paste and select all text area
1 post
• Page 1 of 1
0
make copy/paste and select all text area
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
|
|