Copy To Page (ing)

Konu sahibi son olarak 3346 gün önce görüldü
Forma yazılan yazıların sayfa içerisinde herhangi bir yere tıklanılması ile birlikte sizin istemiş olduğunuz alanda direk olarak görünmesini sağlıyor.


Kod:
<script type="text/javascript">
/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Toicontien | http://www.webdeveloper.com/forum/showthread.php?t=153046 */
function copyValue(el) {
  ********.getElementById('copy_' + el.id).innerHTML = el.value;
}
</script>


<p>Input text here:<br>
<input type="text" name="phone"	style="width:160px" id="phone" onchange="copyValue(this);">
<br><br>
When you tab out or click somewhere else on the page, your text will appear below.
<br><br>
Your input: <span id="copy_phone" style="font-weight: bold;"></span>
</p>
 
Geri