If the user highlights the text within an <h1> with their cursor, how do I get that <h1> object? Or if they selected text within an <li>, how do i get that <li>?
If the user highlights the text within an <h1> with their cursor, how do
Share
You need to deal with
window.getSelection().See