blob: 80779d4d8c1c0019cf8b6f59325b8b6dcdfc2f1d [file] [log] [blame]
<body contentEditable>
<p id="p">
This<br/>
is<br/>
text<br/>
to<br/>
force<br/>
a<br/>
vertical<br/>
scrollbar<br/>
to<br/>
appear.<br/>
</p>
<script>
window.focusAndSelectText = function()
{
document.body.focus();
document.execCommand("SelectAll");
}
window.getSelectedText = function()
{
return window.getSelection().getRangeAt(0).toString();
}
</script>
</body>