Ciao.
Prova qualcosa del genere:
fonte: http://stackoverflow.com/questions/3...ith-javascriptcodice:var sel = window.getSelection ? window.getSelection() : document.selection; if (sel) { if (sel.removeAllRanges) { sel.removeAllRanges(); } else if (sel.empty) { sel.empty(); } }