Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

How to add a right click alert to the whole site?

Home / Forums / Pinnacle Theme / How to add a right click alert to the whole site?

This topic is: Not Resolved
[Not Resolved]
Posted in: Pinnacle Theme
February 19, 2016 at 9:13 am

Hi,

I want users to get notified with a short message each time when clicking with a right mouse button throughout the whole site. Ideally only on images, but can be on everything else. I know how to do it for a certain element by adding the command explicitly to a container: <div oncontextmenu=”javascript:alert(‘the text’);return true;”>The contents</div>.

The question is how to spread it automatically to the whole site?

Thanks!

  • The forum ‘Pinnacle Theme’ is closed to new topics and replies.