Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] how to disable right click mouse option in IE browser


  • From: david at dorward.me.uk (David Dorward)
  • Subject: [Javascript] how to disable right click mouse option in IE browser
  • Date: Fri Sep 22 03:51:01 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