Disable Right Click With Vanilla Javascipt

Disable Right Click With Vanilla Javascipt

Coding Artist

2 года назад

932 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@NileGold
@NileGold - 18.11.2023 17:01

Nuh uh

Ответить
@fabianschultz6527
@fabianschultz6527 - 23.04.2022 17:26

Whoa, does that block downloading images, too?

Ответить
@LokhandeJay
@LokhandeJay - 06.09.2021 14:17

Mind-blowing di👏🏻

Ответить
@thevividversatilechannel4807
@thevividversatilechannel4807 - 11.08.2021 09:11

You can just do

document.querySelector('*').oncontextmenu=()=>false

One line solution. Works in all browsers which support ES6.

Thank you very much!

Ответить
@CreativeTutorialsWeb
@CreativeTutorialsWeb - 05.08.2021 11:14

An Amazing Video

Ответить
@point_man
@point_man - 04.08.2021 18:23

Best part, it blocks the "context menu" key workaround

Ответить
@mayankvikash
@mayankvikash - 04.08.2021 17:40

Hi,
I am working on a very big project, wanna do a collab.
Reply to this comment if yes, I will provide you my email, revenue share and other things we will discuss there.

Ответить
@supremecoding632
@supremecoding632 - 04.08.2021 17:22

Wow it's first time I seen some thing like this

Ответить
@thecodetex
@thecodetex - 04.08.2021 17:16

Cool I used this long ago, but it was quite annoying 😂, first comment

Ответить