function selected() {
var selObj = window.getSelection();
}
This function returns selected text from a webpage. How do return the html of a selected area. Is this possible to do with an <img>
and an <a>
tag?
Here's the list of functions:
https://developer.mozilla.org/Special:Tags?tag=DOM&language=en