johnytest johnytest - 1 year ago 49
Javascript Question

Remove image using javascript/refresh image on change

I would like to know how I can remove an image using a red box with a white X .

I found this

I would like to know how I can make a red box on the corner everytime a new image is produced. Or if its easier to just refresh the image when changes are applied

Answer Source
<div style="position:relative;">
    <img src="complete/source/path" alt="title">
    <div style="position:absolute; right:5px; top:5px; color:red; ">X</div>