Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

webviewer disabling right click

Featured Replies

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.

Solved by No_access

Go to solution
  • Solution

You can try this

 

 

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

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

  • 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 :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.

  • Author

I added on "contextmenu: false," line to infobox options and it is working perfectly now. Tx for the help :laugh2:

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.