»
EnglishFrenchVietnamese

Print - Write in this page - JavaScriptBank.com

Full version: jsB@nk » Utility » Write in this page
URL: https://www.javascriptbank.com/write-in-this-page.html

Write in this page © JavaScriptBank.comUse this JavaScript to visitors write in your webpage with many formats.

Full version: jsB@nk » Utility » Write in this page
URL: https://www.javascriptbank.com/write-in-this-page.html



JavaScript
<script language="JavaScript"><!--var perm = false;function Write() { perm = !perm; Cur(); document.a.b.blur()}function Cur() {if (perm) { if (c.innerHTML == "|") {c.innerHTML = ""} else { c.innerHTML = "|" } cursor = setTimeout("Cur()",550);}else { c.innerHTML = "" }}function Ins() {var key = event.keyCode;var txt = w.innerHTML;if (perm) { if (key == 13) {txt += "<br>"} else if (key == 8) { txt = txt.substring(0,txt.length-1) } else if (key == 32) {txt += "&nbsp;"} else if (key == 27) {txt = ""} else { txt += "&#" + key + ";"} w.innerHTML = txt; }}//--></script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<body onkeypress="Ins()" link="blue" vlink="blue" alink="blue"><h3>The creator didn&#39;t know what to write in this page. Do you?</h3><form name="a"><a href="mailto:[email protected]">[email protected]</a><hr><button name="b" onclick="Write()"> <small>Click to</small> <b>Write below</b> </button><br><small>Esc - Clear all</small><p><q id="w"></q><b id="c"></b></p></form></body><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->