This article is in need of a technical review.
Image Element constructor
Accepts two optional parameters: Image([unsigned long width, unsigned long height])
var myImage = new Image(100, 200); myImage.src = 'picture.jpg'; console.log(myImage);
<img width="100" height="200" src="picture.jpg">
Note: this constructor exists for historical reasons and returns an HTMLImageElement instance just as
The definition of the Image constructor in that specification.
|Recommendation||A constructor (with 2 optional parameters) has been added.
The following properties are now obsolete:
The following properties are now
The following properties have been added: