[Javascript] how to disable right click mouse option in IE browser
David Dorward
david at dorward.me.uk
Fri Sep 22 03:50:55 CDT 2006
On Fri, Sep 22, 2006 at 09:25:12AM +0100, suresh kumar wrote:
> Is there any javascript function available to prevent user from
> clicking the right mouse button in the IE browser display area .because
> there is a view source option available when user click the right mouse
> button in browser display area. i want to prevent user from viewing the
> source code
You can't prevent the user from viewing the source code, you can only
irritate them.
See http://dorward.me.uk/www/hide/
... which I should update to mention the fairly common "Allow JS to
run, but don't let it mess with my context menu" options that browsers
generally come with these days.
--
David Dorward http://dorward.me.uk
More information about the Javascript
mailing list