I have done this and it doesn't seem to be working!:
Javascript:
<script>
function hideOptionPhoto(){
var element = document.getElementById("Photo1");
element.parentNode.removeChild(Photo);
};
window.onload = function() {
hideOptionPhoto();
};
</script>
HTML:
<div id=Photo1>
<input id="Photo" type="image" src="x.png" border="0" name="submit" alt="">
</div>
I put the <input>
inside a <div>
because of the parent and child situation. Is that correct?