I just want to bring image whenever i press css button but image is not coming. what can be wrong in this?
<html>
<head>
<script >
function create() {
var x = document.createElement("IMG");
x.setAttribute("src", "C:\Users\jai guru umesh\Desktop\webops\sha\fronthead images\rover0.png");
document.body.appendChild(x);
};
</script>
</head>
<body>
<input type="button" name="cssandcreate" id="cssandcreate" value="css" onclick="create()"/>
</body>
</html>
rover0.pngin the specified path, I'm also not sure if the path is interpretable, normally we should usefile:///C:/...notC:\...but I'm not really sure about that.file:///protocol.