Forum Moderators: open
<body>
<input name="button" type="button" value="Click Me" onclick="clicked();"/>
<br />
<script type="text/javascript">
function clicked() {
document.write("You clicked the button.");
}
</script>
</body>
Thanks in advance for any help!
Instead of document.write, use DOM methods like appendChild and createNode or createTextNode.