Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

block Mouse right click in ADF web pages using Javascript

3121535Oct 17 2017 — edited Oct 26 2017

Hi All,

I've google'd internet but didn't find a working solution. Please help me out.

I'm new to Javascript based ADF development. currently using Jdev 12.2.1.2

To block Mouse's right Click : I tried to block 'contextMenu' operation. putting a script at top of my JSF page as below.

     <af:resource type="javascript" >

        document.body.oncontextmenu = new function(){return false;};

      </af:resource>

But context menu is poping up.

I appreciate you help.

Thanks,

RN

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 23 2017
Added on Oct 17 2017
7 comments
682 views