I use the window.getSelection () method in my project to make quoted text
It works great in all modern browsers except IE10. In console, IE10 returns the correct text, but the selection does not work.
The only code I used:
text = window.getSelection().toString(); console.log(text);
This code raises the mouseup event.
Does anyone know a solution?
try it, it should work, 9.0
var texttest = document.selection.createRange(); alert (texttest.text);
this is for all browsers except <9.0
var texttest = document.getSelection(); alert(texttest);
Source: https://habr.com/ru/post/943789/More articles:Php 404 Not Found Header - phpThe long-term goal of ASP.NET. Exception interrupted topic - c #Javascript error on IE8 and IE9 - javascriptadd object to observable array using knockout - javascriptUsing PHP to load in Amazon S3 - phpSystems similar to AllJoyn - bluetoothPHP, MySQLi - How to count query result strings? - phpEfficient overloading in Haskell - haskellString comparison doesn't work in PowerShell function - what am I doing wrong? - gitHeroku Django DEBUG Not applicable - djangoAll Articles