can I change its .svg content, after I loaded an .svg external file using JavaScript image?
const image = new Image();
image.src = 'http://[URL]/image.svg';
image.onload = () => {
// CHANGE SVG FILE
// INSERT TO HTML DOM
}
I know about XML HttpRequest but this question is exactly asking on JavaScript Image.
Does the image variable in this case contain the data?