Done - You Want to Click On Some Text On Your Page to Select It

Thank you Taewan Kim.

As long as it's an element like a div or a paragraph or a span, this one is easy.

Starting with <p>, just change that to (click below in the colored area to select it)

<p onclick="var range = document.createRange(); range.selectNodeContents(this); window.getSelection().removeAllRanges(); window.getSelection().addRange(range);">

And you're done

Comments

Popular posts from this blog

How Should You Put Your Text in a Box?

Tricks : Getting Image URL When Page Doesn't Want You To!

A Web Interface to Try Dual Key Caesar Cipher Encryption and Decryption