To disable right-click in an iframe, you can add the following code to the iframe element:
<iframe src="yourfile.html" style="pointer-events: none;"></iframe>
This code will prevent users from right-clicking on the content within the iframe. However, keep in mind that disabling right-click may not be effective at preventing users from accessing the content in other ways, such as through the browser's developer tools.How to disable right-click using JavaScript.