fyi people can always inspect your site by merely pressing f12, so disabling right click only annoys people trying to highlight stuff and wanting to like or open tabs and images lmfao
@viciousdelights it's actually not so much about 'protecting' my code or anything (i think my code is ass so good luck to anyone who wants to take a peek haha) but more for piece of mind that when I do put a secret link for my bf to access to the pages I dedicate to him, that nobody could randomly come across it and take a look
https://stackoverflow.com/questions/737022/how-do-i-disable-right-click-on-my-web-page here you go, but i do recommend against it
@just-a-husk thanks!! out of curiosity, why is that? I'm reading the comments on the link against it but i still don't really understand ;-;
fyi people can always inspect your site by merely pressing f12, so disabling right click only annoys people trying to highlight stuff and wanting to like or open tabs and images lmfao
Oh okay I had no idea, thanks for letting me know!! -a person who has never used the function keys in their life lolol
May I know why you don't want people to inspect your site, or a page on your site?
@viciousdelights it's actually not so much about 'protecting' my code or anything (i think my code is ass so good luck to anyone who wants to take a peek haha) but more for piece of mind that when I do put a secret link for my bf to access to the pages I dedicate to him, that nobody could randomly come across it and take a look
peace of mind* that's so embarrassing omg forgive me I've just woken up