The distinguished Skittles spake:[quote]The distinguished Dr.Spriter spake:<blockquote>Is there any way to find out what the Element Id name is?
<br>
<br>You set what an element's ID is. <element id="id_here"></blockquote>
<br>
<br>I think he meant something else lol[/quote]
No, because that's how you do it. You set the element's ID, thus you simply go and find the element you're specifying and see what it is or set it if it doesn't have on and needs it.
It's my job to help the next generation, and set a good example for them. And for that I'll gladly lay down my life.
It would be
<script>
function KillSkittles() {
document.getElementById("Skittles").innerHTML = destroy();
}
</script>
<input type="button" value="initiate" onclick="KillSkittles()" />