Wrote an article
I've learned something cool and sharing it using this short article:

https://blog.greenroots.info/how-to-create-an-eyedropper-tool-using-javascript