title: how to add event listener download to iframe with pdf
body: <p>I have the following question</p>
  <p>Is it possible to detect with some listener or something with js when downloading a pdf that is hosted in an iframe?</p>
  <p>I have not been able to detect something similar so far</p>
  <pre><code>&lt;td colspan=&quot;7&quot; height=&quot;400px&quot;&gt;
                                
                                  &lt;iframe name=&quot;iframeid&quot; id=&quot;iframeid&quot; src='urlTempPDF' width=&quot;100%&quot; height=&quot;100%&quot;&gt;
                                      &lt;/iframe&gt;
                              &lt;/td&gt;
  </code></pre>
  <p><a href="https://i.stack.imgur.com/3QyHf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3QyHf.png" alt="enter image description here" /></a></p>
  <p>I want to detect when the download starts and if the document has been downloaded correctly.</p>