Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

webviewer disabling right click


Go to solution Solved by No_access,

This topic is 4208 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Is there a way to disable right click on webviewer but not disabling interaction to webviewer content? By the way onObjectKeystroke not working with webviewer so i need another way or a plugin. I am doing this to prevent users from viewing html source code.

  • Solution
Posted

You can try this

 

 

"data:text/html," &
"<body oncontextmenu="return false">
test
</body>"

  • Like 1
Posted

You can try this

 

 

"data:text/html," &

"<body oncontextmenu="return false">

test

</body>"

 

I added this to body element but i can still view source code. There is no change. Tx for the idea though. Keep them coming :D

Correction: I can only right click in infoboxes. Is there any way to stop that?

 

Why would it matter if they can view your source code?

 

There is a fierce competition here and if i dont protect what i do, it will be stolen.

Posted

There is a fierce competition here and if i dont protect what i do, it will be stolen.

 

If it can be viewed on the web, it can be copied. Trying to stop that is simply a waste of time and effort... Nevertheless, if you wish to attempt to stop people from viewing your code, good luck.

This topic is 4208 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.