By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,261 Members | 1,658 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,261 IT Pros & Developers. It's quick & easy.

selected text

P: n/a
hello. is it possible to copy selected text from DIV, TABLE or eg. P to
form's TEXTAREA? I'm searching solution working on possibly all browsers.
thank you.

--
waste
http://marti.presents.pl/
Jul 23 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Ron
waste wrote:
hello. is it possible to copy selected text from DIV, TABLE or eg. P to
form's TEXTAREA? I'm searching solution working on possibly all browsers.
thank you.

Not in a standard way. IE4+ uses the document.selection object to refer
to the current selection while Gecko-based browsers have the
window.getSelection() method.
See http://www.mozilla.org/docs/dom/domr...4.html#1000044
and
http://msdn.microsoft.com/workshop/a..._selection.asp
..
Jul 23 '05 #2

P: n/a
2004-05-29 16:34:59, na comp.lang.javascript, Ron napisał(a):
Not in a standard way. IE4+ uses the document.selection object to refer
to the current selection while Gecko-based browsers have the
window.getSelection() method.

thank you. is there some method for Opera, too?

--
waste
http://marti.presents.pl/
Jul 23 '05 #3

P: n/a


waste wrote:
2004-05-29 16:34:59, na comp.lang.javascript, Ron napisał(a):

Not in a standard way. IE4+ uses the document.selection object to refer
to the current selection while Gecko-based browsers have the
window.getSelection() method.


thank you. is there some method for Opera, too?


As far as I know not.
--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 23 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.