Other OutSystems sites...
OutSystems Website
About Agility Blog
OutSystems Network
Login
Signup
Forums
Academy
Forge
Ideas
Forums
›
Guides & How-tos
›
how to set oncontextmenu to false
how to set oncontextmenu to false
Joefer Tingson
Rank: #1388
Posted on 2012-05-31
thumbs_up_ico
0
thumbs_down_ico
0
reply
post_link_ico
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
Rank: #5
Posted on 2012-05-31
thumbs_up_ico
1
thumbs_down_ico
0
reply
post_link_ico
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.
Tiago Simões
Rank: #1
Posted on 2012-05-31
thumbs_up_ico
0
thumbs_down_ico
0
reply
post_link_ico
Hi Joefer,
Try to add
document.body.oncontextmenu = function() {return false;}
to the webscreen javascript:
Cheers,
Tiago Simões
kalkulator kredytowy
Rank: #2752
Posted on 2012-06-20
thumbs_up_ico
0
thumbs_down_ico
0
reply
post_link_ico
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
Quick Reply
Notify me by email when someone answers to my post
attachment
Choose File
No file chosen
Submit
Login to reply
Something on your mind?
Login to Start a Discussion
Top Forums Posters
Gonçalo Martins
Davide Marquês
Ricardo Silva
Charles Colaço
Richard Pearson
Statler & Waldorf
Fábio Silva
Justin James
Robert Chanphakeo
Kilian Hekhuis
See leaderboard
Online Training
On-demand video lessons to help you learn at your own pace.
Learn More