¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita0
How to load an image in javascript
3 Respuestas
+ 4
You can store path to image inside variable and assign it to src of img tag.
If this is what you try to do
+ 1
var img= new Image();