May 24, 201312 yr 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.
May 24, 201312 yr Solution You can try this "data:text/html," & "<body oncontextmenu="return false"> test </body>"
May 27, 201312 yr Author 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 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.
May 27, 201312 yr Author I added on "contextmenu: false," line to infobox options and it is working perfectly now. Tx for the help
May 27, 201312 yr 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.
Create an account or sign in to comment