Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
<script>
function addsmile(text) {
var txtarea = document.imenaforma.pole1;
text = ' ' + text;
if (txtarea.createtextRange && txtarea.caretPos) {
var caretPos = txtarea.caretPos;
caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? caretPos.text + text + ' ' : caretPos.text + text;
txtarea.focus();
}else {
txtarea.value += text;
txtarea.focus();
}
var txtarea = document.imenaforma.pole2;
text = '' + text;
if (txtarea.createtextRange && txtarea.caretPos) {
var caretPos = txtarea.caretPos;
caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? caretPos.text + text + ' ' : caretPos.text + text;
txtarea.focus();
}else {
txtarea.value += text;
txtarea.focus();
}
var txtarea = document.imenaforma.pole3;
text = '' + text;
if (txtarea.createtextRange && txtarea.caretPos) {
var caretPos = txtarea.caretPos;
caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? caretPos.text + text + ' ' : caretPos.text + text;
txtarea.focus();
}else {
txtarea.value += text;
txtarea.focus();
}
}
</script>
<a href="javascript:addsmile(':)');">dobavi :)</a>
<form action="" name="imenaforma">
<input type="text" name="pole1" value=""><br />
<input type="text" name="pole2" value=""><br />
<input type="text" name="pole3" value="">
</form>