How to access navigator.userAgent?

Mind giving an example of how to do this? :smiley: