[ Web Proxy ]
URL:
Viewing: https://developer.mozilla.org/ru/docs/Web/API/HTMLImageElement/Image [Back]  [Original]

Image() - API | MDN

This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

Image()

Baseline Widely available

This feature is well established and works across many devices and browser versions. Its been available across browsers since 2015 ..

Image() HTMLImageElement. document.createElement ('img').

Image

: :

js
Image([unsigned long width, unsigned long height])

js
var img = new Image(100, 200);
img.src = "picture.jpg";
console.log(img);
html
<img width="100" height="200" src="picture.jpg" />

: , HTMLImageElement , document.createElement('img').


Web Proxy Viewer  |  New URL  |  Original Page