Home Customize Forums Journals Opera Fans Open Web Developers Comics News Portal Forum home | Search | My Account | Control Panel | FAQ | New Posts | Today's Posts | Mark All Read | Logout Search Thread My Opera Forums » Opera Topics » Web design » How to get text selected? Go to first unread post « Last Thread | Next Thread » coviex Junior Member Registered: Oct 2004 Location: Posts: 3 Status: online How to get text selected? document.selection.createRange().text in IE document.getSelection() in Mozila what's Opera's equivalent? Report this post 4 October 2004 14:02 aleto A Man from Zuerich Registered: May 2003 Location: Zürich Posts: 1690 Status: online document.getSelection() too, but it's just a string, not a 'range' | web BM's | Unicode Charts Panel | Lab Colors | strict dtd | Report this post 4 October 2004 14:47 coviex Junior Member Registered: Oct 2004 Location: Posts: 3 Status: online I have Opera 7.54 for Windows and document.getSelection() always return empty string. So what's the solution? Report this post 4 October 2004 14:59 aleto A Man from Zuerich Registered: May 2003 Location: Zürich Posts: 1690 Status: online does work here. but opera does clear the selection on a click event. | web BM's | Unicode Charts Panel | Lab Colors | strict dtd | Report this post 4 October 2004 15:18 coviex Junior Member Registered: Oct 2004 Location: Posts: 3 Status: online I tried to capture onclick event and get there selection, but it did not work anyway. Please give exact code snippet to get selection in Opera if you have some. I think this will be usefull for a lot of webmasters. Report this post 5 October 2004 06:55 « Last Thread Next Thread » Subscribe to this Thread Quick Reply [check message length] E-mail notification Forum jump Misc Show Printable Version Email this Page Forum rules You may post new threads You may post replies You may post attachments You may edit your posts HTML code is OFF vB code is ON Smilies are ON [IMG] code is OFF Admin Options: All times are GMT. The time now is 08:19. Powered by: vBulletin Version 2.3.0 Copyright ©2000 - 2002, Jelsoft Enterprises Limited. Copyright Opera Software ASA. All rights reserved.

hover this to get the Selection