jimfog Posted June 25, 2011 Share Posted June 25, 2011 It seems that there is a method of the window object which has the name getselection and returns an object containing the selection(text) the user made to the page.Nonetheless i cannot find such method in the w3schools tutorials.Is it a relatively new method? Link to comment Share on other sites More sharing options...
Ingolme Posted June 25, 2011 Share Posted June 25, 2011 W3Schools' Javascript reference is pretty incomplete. And I think getSelection has a few cross-browser problems which are addressed in some places on the internet by professional web developers. Link to comment Share on other sites More sharing options...
jeffman Posted June 25, 2011 Share Posted June 25, 2011 Depending on what you want to do with it, this can be a real PITA, especially cross-browser (IE9 is better). More info at Mozilla (check out all the linked properties and methods to see how deep you want to get into this stuff): https://developer.mozilla.org/en/DOM/Selection Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.