I have right-click disabled in the header of a website using
<body oncontextmenu="return false">
Which gives the functionality that I have been asked for.
But I have a requirement to then re-enable right click on an iframe within this site and I'm not sure this is possible.
Without going into the "Why?", "Don't bother", etc... comments, I was wondering if someone could kindly answer if (or not) this will be possible, and how?
On the iframe I have tried to give it it's own <body>
tag, but the main parents <body oncontextmenu="return false">
tag seems to be overriding it.
Edit :
This line is in the parent page <body oncontextmenu="return false">
The iframe is on a different domain to the parent page.