¡@

Home 

javascript Programming Glossary: getselectedtext

Javascript: How to detect if a word is highlighted

http://stackoverflow.com/questions/4712310/javascript-how-to-detect-if-a-word-is-highlighted

Example http www.jsfiddle.net timdown SW54T function getSelectedText var text if typeof window.getSelection undefined text window.getSelection.. text function doSomethingWithSelectedText var selectedText getSelectedText if selectedText alert Got selected text selectedText document.onmouseup..

JavaScript retrieving the text of the selected option in select element

http://stackoverflow.com/questions/610336/javascript-retrieving-the-text-of-the-selected-option-in-select-element

javascript dom share improve this question function getSelectedText elementId var elt document.getElementById elementId if elt.selectedIndex..

determine the frame id/name when a user has selected text in that frame- the page has multiple frames

http://stackoverflow.com/questions/7807510/determine-the-frame-id-name-when-a-user-has-selected-text-in-that-frame-the-pag

cannot be retrieved and the iframe is ignored. function getSelectedText win var sel if win.getSelection return win.getSelection else.. 0 len iframes.length selectedText i len i try selectedText getSelectedText iframes i .contentWindow if selectedText alert just there for..

WYSIWYG editor for IE [closed]

http://stackoverflow.com/questions/8739711/wysiwyg-editor-for-ie

instead. Live demo http jsfiddle.net RmXgy 1 Code function getSelectedText var selectedText sel if window.getSelection selectedText window.getSelection.. var sel html ' span style background image url foo.png ' getSelectedText span if sel document.selection sel.type Control sel.createRange..