/

HTML / CSS / JavaScript Tutorial

JavaScript canvas2d object property: width

[this page | pdf | back links]

The width property of the JavaScript DOM object returned by the getContext("2d") method applied to the HTML <canvas> element returns the width of an ImageData object.

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript DOM (and BOM)


Desktop view | Switch to Mobile