How to disable right-click in the iframe?

80
January 03, 2022, at 12:20 PM

I have a WordPress website I would like to disable right-click in my iframe videos?

Answer 1

The oncontextmenu attribute should help you

<source src="yourvideo.ogg" oncontextmenu="return false;">
READ ALSO
Log sorting - Custom sorting is not working

Log sorting - Custom sorting is not working

Trying to sort the array 0f log versions in ascending orderI can get it to work by directly implementing Comparator as

77
fetch days exactly 2 days ahead of set date for departure column

fetch days exactly 2 days ahead of set date for departure column

how can I fetch and display data 2 days ahead of set date from the column 'departure' from table 'products'

71
Value in between javascript

Value in between javascript

I have an arrays of object,

99
Sorting dates by week and calculate sum using nodeJS

Sorting dates by week and calculate sum using nodeJS

I have a group of array values with 'Working_date' and 'Working_hours' as given belowThese dates can be any dates but most probably they will be consecutive dates

124