title: how to block right mouse click on iframe
body: <p>How do I block the right mouse button click on top of the iframe, I tried to use the oncontextmenu=&quot;return false&quot; in the iframe tag but it didn't work, in my case I want to change the right button on top of the pdf that I do this being a example inside the iframe, here is an example inside my code:</p>
  <pre><code>&lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;block the right mouse&lt;/title&gt;
  &lt;/head&gt;
  &lt;body &gt;
      &lt;iframe oncontextmenu=&quot;return false&quot; id=&quot;iframepdf&quot; src=&quot;http://infolab.stanford.edu/pub/papers/google.pdf#toolbar=0&quot; width=&quot;500px&quot; height=&quot;600px&quot; type=&quot;application/pdf&quot;&gt;&lt;/iframe&gt;
  &lt;/body&gt;
  </code></pre>