title: A page or script is accessing at least one of navigator.userAgent, navigator.appVersion, and navigator.platform
body: <p>I'm having an issue in my JavaScript program, when I submit a form, a message has to be printed in console. but I get this issue:</p>
  <blockquote>
  <p>A page or script is accessing at least one of navigator.userAgent,
  navigator.appVersion, and navigator.platform. In a future version of
  Chrome, the amount of information available in the User Agent string
  will be reduced.</p>
  </blockquote>
  <p>It is also mentioned that:</p>
  <blockquote>
  <p>To fix this issue, replace the usage of navigator.userAgent,
  navigator.appVersion, and navigator.platform with feature detection,
  progressive enhancement, or migrate to navigator.userAgentData.</p>
  </blockquote>
  <p>But I don't know how to do that!</p>