Skip to content

Instantly share code, notes, and snippets.

@Rajdeepc
Last active November 12, 2020 16:06
Show Gist options
  • Save Rajdeepc/5c9b36d586b10ddf97047f2d24d11133 to your computer and use it in GitHub Desktop.
Save Rajdeepc/5c9b36d586b10ddf97047f2d24d11133 to your computer and use it in GitHub Desktop.

Revisions

  1. Rajdeep Chandra renamed this gist Nov 12, 2020. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. Rajdeep Chandra renamed this gist Nov 12, 2020. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. Rajdeep Chandra renamed this gist Nov 12, 2020. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. Rajdeep Chandra created this gist Nov 12, 2020.
    14 changes: 14 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    // To disable text selection on your webpage try this css

    body {
    -webkit-user-select: none;
    -moz-user-select: -moz-none;
    -ms-user-select: none;
    user-select: none;
    }


    // To disable inspect element on a webpage do this

    <body oncontextmenu="return false"></body>