ihsan07 Posted May 24, 2013 Posted May 24, 2013 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 No_access Posted May 24, 2013 Solution Posted May 24, 2013 You can try this "data:text/html," & "<body oncontextmenu="return false"> test </body>" 1
ihsan07 Posted May 27, 2013 Author Posted May 27, 2013 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.
ihsan07 Posted May 27, 2013 Author Posted May 27, 2013 I added on "contextmenu: false," line to infobox options and it is working perfectly now. Tx for the help
webko Posted May 27, 2013 Posted May 27, 2013 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now