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