@arnoldo.moen
To disable click pointer-events in certain parts of an iframe, you can use CSS to target specific elements within the iframe and set their pointer-events property to "none". Here is an example of how you can achieve this:
1 2 3 |
iframe#myIframe { pointer-events: none; } |
1 2 3 |
iframe#myIframe .disabled-element { pointer-events: none; } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
<!DOCTYPE html> <html> <head> <style> iframe#myIframe { pointer-events: none; } iframe#myIframe .disabled-element { pointer-events: none; } </style> </head> <body> <iframe id="myIframe" src="https://www.example.com"></iframe> </body> </html> |
By using CSS to disable pointer-events for specific elements within the iframe, you can prevent users from clicking on those elements while still allowing interaction with other parts of the iframe.