I know some javascript but never quite understood why this code makes the buttons disappear.
<input type="button" name="clickable" value="Click me!" onclick="clicked();">
OR
<button onclick="clicked();">Clickity</button>
Here is my function
function clicked() {
document.write("Thank you");
}
As you can see it is not telling the element to hide or anything like that. Can someone explain this? A solution would be nice.