How to load an image in javascript | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

How to load an image in javascript

2nd Aug 2022, 8:04 PM
CerealAgenda
CerealAgenda - avatar
3 Respostas
+ 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
2nd Aug 2022, 8:43 PM
PanicS
PanicS - avatar
+ 1
var img= new Image();
2nd Aug 2022, 9:11 PM
Chigozie Anyaeji šŸ‡³šŸ‡¬
Chigozie Anyaeji šŸ‡³šŸ‡¬ - avatar