Skip to Content (Press Enter)
OutSystems.com
Personal Edition
Community
Support
Training
Training
Online Training
Developer Schools
Boot Camps
Certifications
Tech Talks
Documentation
Documentation
Overview
ODC
O11
Forums
Forge
Get Involved
Get Involved
Jobs
Ideas
Members
Mentorship
User Groups
Platform
Platform
ODC
O11
Search in OutSystems
Log in
Get Started
Back to Forums
Joefer Tingson
3
Views
3
Comments
how to set oncontextmenu to false
Discussion
JavaScript
How-to
Hi,
I would to ask if its possible to set the oncontextmenu to false in outsystems. One of our requirement is to disable the displaying of the context menu everytime the user tries to right click on a web page.
Thanks,
Joefer
Paulo Ramos
Staff
Hi,
Try adding the code below to your screen javascript (click on the screen, double-click
Javascript
), or into an unescaped expression (in a <script...> tag). I didn't try it, but it should work...
window.oncontextmenu =
function
() {
return
false
;
}
If you want to affect a set of screens, you can use it in a web block instead.
1 reply
20 Jun 2012
Show thread
Hide thread
kalkulator kredytowy
Paulo Ramos wrote
:
Hi,
Try adding the code below to your screen javascript (click on the screen, double-click
Javascript
), or into an unescaped expression (in a <script...> tag). I didn't try it, but it should work...
window.oncontextmenu =
function
() {
return
false
;
}
If you want to affect a set of screens, you can use it in a web block instead.
I had similiar problema and this worked for me. Thanks
Tiago Simões
Staff
Hi Joefer,
Try to add
document.body.oncontextmenu = function() {return false;}
to the webscreen javascript:
Cheers,
Tiago Simões
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
See the full guidelines
Loading...