- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to prevent text select outside HTML5 canvas on double-click?
To avoid the double click text issue −
var canvas1 = document.getElementById('c'); canvas1.onselectstart = function () { return false; }
Note − The Canvas should not fill the width of the page and it is only 100 pixels wide.
- Related Articles
- How to use multiple click event on HTML5 canvas?
- Measure text height on an HTML5 canvas element
- How to select the text of a span on click in Selenium?
- Does HTML5 Canvas support Double Buffering?
- HTML5 Canvas Circle Text
- Properties to create text using HTML5 Canvas
- How to detect point on canvas after canvas rotation in HTML5
- How to draw large font on HTML5 Canvas?
- How to draw a rectangle on HTML5 Canvas?
- How to perform double click on an element in Selenium?
- How to configure default Mouse Double-Click behavior in a Tkinter text widget?
- How to dismiss the dialog with click on outside of the dialog?
- How to draw a quadratic curve on HTML5 Canvas?
- HTML5 Canvas layer disappears on mouse click in Fabric.js and Firefox stops responding when creating a canvas for the image?
- HTML5 Canvas Font Size Based on Canvas Size

Advertisements