I use javascript method navigator.userAgent to detect version of browser. But it gives wrong version for Chrome. My Chrome is 114.0.5735.134, but the navigator.userAgent show it is 114.0.0.0. I would be grateful if some body can give me advice on how to fix this? Thank you.
How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.