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 type="text/javascript">
function getSelText()
{
var txt = '';
if (window.getSelection)
{
txt = window.getSelection();
}
else if (document.getSelection)
{
txt = document.getSelection();
}
else if (document.selection)
{
txt = document.selection.createRange().text;
}
else return;
document.getElementById('text').innerHTML = txt;
}
</script>
<input type="button" value="Get selection" onmousedown="getSelText()">
<div id="text" style="border: 1px solid #ccc; width: 400px;">here text</div>
Text text text text and text and text<br />
and text and text text text text<br />
and text and text text text text<br />
Text text text text and text and text<br />