Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #4235

Re: getSelection - method of document or window?

From Dr J R Stockton <reply1128@merlyn.demon.co.uk>
Newsgroups comp.lang.javascript
Subject Re: getSelection - method of document or window?
Date 2011-07-16 18:53 +0100
Organization Home
Message-ID <1aBEJaCVAdIOFwVX@invalid.uk.co.demon.merlyn.invalid> (permalink)
References <b108c664-9f71-4519-98c9-216429f42a73@m3g2000pre.googlegroups.com>

Show all headers | View raw


In comp.lang.javascript message <b108c664-9f71-4519-98c9-216429f42a73@m3
g2000pre.googlegroups.com>, Thu, 14 Jul 2011 21:22:21, RobG
<rgqld@iinet.net.au> posted:

>A general method for getting the selected text in a document (other
>than inside input and textarea elements) is:

If you should later wish to extend to using textarea, recall that there
is at least one version of at least one browser in which it was
necessary for "readonly" to be not set at the exact moment of executing
the test grab.   Web  <http://www.merlyn.demon.co.uk/js-props.htm> E&OE.

-- 
 (c) John Stockton, nr London, UK. ?@merlyn.demon.co.uk  Turnpike 6.05  WinXP.
 Web  <http://www.merlyn.demon.co.uk/> - FAQ-type topics, acronyms, and links.
 Command-prompt MiniTrue is useful for viewing/searching/altering files. Free,
 DOS/Win/UNIX now 2.0.6; see <URL:http://www.merlyn.demon.co.uk/pc-links.htm>.

Back to comp.lang.javascript | Previous | NextPrevious in thread | Find similar


Thread

getSelection - method of document or window? RobG <rgqld@iinet.net.au> - 2011-07-14 21:22 -0700
  Re: getSelection - method of document or window? RobG <rgqld@iinet.net.au> - 2011-07-14 22:41 -0700
  Re: getSelection - method of document or window? Dr J R Stockton <reply1128@merlyn.demon.co.uk> - 2011-07-16 18:53 +0100

csiph-web