»
AnglaisFran�aisVietnamien

Imprimer - Copie de la page - JavaScriptBank.com

Version compl�te: jsB@nk » Snippet » Copie de la page
URL: https://www.javascriptbank.com/copy-to-page.html

Copie de la page © JavaScriptBank.comCet Extrait de JavaScript permet de copier le texte entré dans un forme le terrain et placez-le directement sur la page Web.

Version compl�te: jsB@nk » Snippet » Copie de la page
URL: https://www.javascriptbank.com/copy-to-page.html



JavaScript
<script language="javascript">/*Created by: Toicontien | http://www.webdeveloper.com/forum/showthread.php?t=153046*/function copyValue(el) {  document.getElementById('copy_' + el.id).innerHTML = el.value;}</script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<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><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->