Try something similar to this to get the dom element that contains the selected text. window.getSelection().anchorNode.parentNode It works on firefox and ...
確定! 回上一頁