Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Per Klick Code in Textarea einfügen</title>
<script type="text/javascript">
<!--
function smiley1()
{
document.getElementById('inhalt').value = document.getElementById('inhalt').value + ':);
}
//-->
</script>
</head>
<body>
<textarea cols="10" rows="2" id="inhalt">
[url="javascript:smiley1()"][img]smiley1.gif[/img][/url]
</body>
</html>
function insertAtSelection ( input, text ) {
if ( input.setSelectionRange ) { //moz
var selectionStart = input.selectionStart;
input.value = input.value.substring ( 0, selectionStart ) + text + input.value.substring ( selectionStart );
input.setSelectionRange ( selectionStart, selectionStart + text.length );
} else {
input.value += text;
}
input.focus();
return true;
}