Jump to content
Server Maintenance This Week. ×

webviewer disabling right click


Go to solution Solved by No_access,

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

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This topic is 3996 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.