But ultimately, even this very well written script is useless, 'cause modern browsers protect its users from usability impairing scripts like disabling the right mouse button.
I, for one, have disabled such scripts in my browser preferences.
I do. But I doubt if it’s possible
You can only disable rightclick from within the web page loaded in the frame itself.
felgall Thanks for your reply, I just wanted to keep newbies away from my links specially that links are out my server …
I tried to map an image on all page but it is not working too … is not their any way to select all page even with iframes inside it ?
Since “no right click” scripts only work when the browser owner gives you access to do so such scripts are rather pointless as few people will knowingly give you access to disable part of their browser and so the code will only work for newbies whose browser is configured incorrectly and who don’t know how to fix it.
Most browsers are simply set to disallow any attempt to block access to the context menu from the web page through any means what so ever and so whatever method you try to use will be ignored and the context menu will continue to work from the right mouse button and context menu key on the keyboard as if the script were not there.
Internet Explorer is the only browser that doesn’t provide a browser setting to simply ignore all such scripts. Just makes it a mouse click or two harder to bypass in that browser (assuming that the person is using that browser and trying to access that menu for some reason).
Also most scripts only block the mouse and still leave the menu accessible from a single key press on the keyboard.
Thanks for your replies guys …
after hard search I found this code which works on IE to disable right click on Iframe but the problem is it does not work with external websites , iframed file must be at the same domain … take a look on it