disable

Disabling browser functionalities on DOM elements.

Functions

Function
Description
Example

select

Disable text selection

dphelper.disable.select(el)

spellCheck

Disable spell checking

dphelper.disable.spellCheck(tmr)

rightClick

Disable context menu

dphelper.disable.rightClick(el)

copy

Disable copy functionality

dphelper.disable.copy(el)

paste

Disable paste functionality

dphelper.disable.paste(el)

Description

Browser functionality control:

  • Text Selection - Prevent user from selecting text

  • Context Menu - Disable right-click menu

  • Clipboard - Disable copy/paste operations

  • Spell Check - Turn off browser spell checking

  • Element Targeting - Apply to specific elements or entire page

Usage Examples

Disable Text Selection

Disable Right-Click Context Menu

Disable Copy/Paste

Disable Spell Check

Complete Protection Setup

Details

  • Author: Dario Passariello

  • Version: 0.0.2

  • Creation Date: 20210101

  • Last Modified: 20260220

  • Environment: client (browser)


Automatically generated document

Last updated