
- HTML Tutorial
- HTML - Home
- HTML - Overview
- HTML - Basic Tags
- HTML - Elements
- HTML - Attributes
- HTML - Formatting
- HTML - Phrase Tags
- HTML - Meta Tags
- HTML - Comments
- HTML - Images
- HTML - Tables
- HTML - Lists
- HTML - Text Links
- HTML - Image Links
- HTML - Email Links
- HTML - Frames
- HTML - Iframes
- HTML - Blocks
- HTML - Backgrounds
- HTML - Colors
- HTML - Fonts
- HTML - Forms
- HTML - Embed Multimedia
- HTML - Marquees
- HTML - Header
- HTML - Style Sheet
- HTML - Javascript
- HTML - Layouts
- HTML References
- HTML - Tags Reference
- HTML - Attributes Reference
- HTML - Events Reference
- HTML - Fonts Reference
- HTML - ASCII Codes
- ASCII Table Lookup
- HTML - Color Names
- HTML - Entities
- HTML - Fonts Ref
- HTML - Events Ref
- MIME Media Types
- HTML - URL Encoding
- Language ISO Codes
- HTML - Character Encodings
- HTML - Deprecated Tags
Can we delete the “getContext” property of HTML5 Canvas tag through script?
There is no description in HTML5 specification, which says deletion of a getContext property by the script is valid.
We can write a code in which we delete getContext property of HTMLCanvasElement and then in the separate statement we make it undefined.
Delete window.HTMLCanvasElement.prototype.getContext; _assertSame(window.HTMLCanvasElement.prototype.getContext, undefined, "window.HTMLCanvasElement.prototype.getContext", "undefined");
- Related Articles
- What is getContext in HTML5 Canvas?
- Why to use canvas tag in HTML5?
- How can we delete a MySQL database by using PHP script?
- How can we delete an existing MySQL table by using PHP script?
- Can the HTML5 Canvas element be created from the Canvas constructor?
- HTML5 tag
- HTML canvas Tag
- Can you take a screenshot of the page using HTML5 Canvas?
- How can I use the HTML5 canvas element in IE?
- Translating HTML5 canvas
- HTML5 Canvas distorted
- HTML5 Canvas Transformation
- How can I alter the color of an HTML5 canvas element using jQuery?
- Detect compatibility of the new HTML5 tag with jQuery.
- HTML5 Canvas Transformation Matrix

Advertisements