+3 william appiah-dankwah · February 15, 2015
i want to place an image in javascript how do you do that? does anyone know? 

Post a Reply


- page 2
Oldest  Newest  Rating
0 william appiah-dankwah · March 3, 2015
Why isn't that code working?
0 Abhinav Shukla · March 4, 2015
 You can use html code to put a image in javascript. You put it in the document.write section.
For an example
0 william appiah-dankwah · March 17, 2015
do you literally have to put in the path to pic?
0 michael walker · March 23, 2015
Yes that is my understanding of it as well :) sorry weekend super busy XD
0 william appiah-dankwah · March 4, 2015
Not with document.write
0 william appiah-dankwah · March 4, 2015
U don't know what it's for @abhinav
0 william appiah-dankwah · April 14, 2015
worked the append child out need to re-read how do you use pop(); to remove image thats what i am working on right now
0 william appiah-dankwah · March 4, 2015

function Blue(){
var Pic_on = new image(256, 189)
Pic_on.src = "image.jpg";



This just  tells you were that image is when you use document.write();

document.write(); is just used for testing
i want the image to display

0 Jay Tauron · February 16, 2015
What do you mean by place? You can create an image object

I = new Image();
I.src = 'path/to/pic.jpg';
0 william appiah-dankwah · February 16, 2015
Iv never seen that code. What I mean by place is to put an image in the javascript browser 



A scripting language that is added to standard HTML to create interactive effects, apps, games for the browser.