Loading Images in JavaScript Using src and XMLHttpRequest
У вашего броузера проблема в совместимости с HTML5
In this video tutorial, I'll show you some code that loads images using the src attribute of the Image object. I'll also show you how to use XMLHttpRequest to load an image's byte array and convert it into a base64 string, which can be used to create an image.
Check out the source code here: https://github.com/frankarendpoth/frankarendpoth.github.io/blob/master/content/pop-vlog/javascript/2017/024-load-image/load-image.js
Check out the working example here: https://frankpoth.info/content/pop-vlog/javascript/2017/024-load-image/load-image.html
If frankpoth.info isn't working, try frankarendpoth.github.io
Thanks for watching!