title: Javascript: What counts as "User interacting with webpage?"
body: <p>I'm trying to build a chrome extension that plays an audio file when a value on the page changes to alert the user that it has changed. Sometimes it works, but other times it says that the &quot;play()&quot; method was not allowed because &quot;The user has not interacted with the webpage.&quot;</p>
  <p>It will usually work when the webpage is first loaded, but when navigated away within the same site it will often throw this error.</p>
  <p>This question can be split into two smaller questions:</p>
  <ol>
  <li>What counts as a &quot;User interaction,&quot; in Chrome? I can't seem to find any information on this.</li>
  <li>Is there any way to check using Javascript if the &quot;User interaction,&quot; flag has been set?</li>
  </ol>