<textarea id="sns20170313m0916" style="font-size:1.5em;color:burlywood"></textarea>
<a id="sns20170313m0916a" style="color:pink;font-size:1.5em" href="javascript:sns20170313m0916()">insert lines of text?</a>
<script>
function sns20170313m0916() {
var c = document.getElementById("sns20170313m0916")
c.value = "line\nline"}
</script>
No comments:
Post a Comment