Hi I'm trying to learn Javascript and I was trying to make window pop-up but I tried to do it with a function. Is there a rule where you can't name a function click?
<script type="text/javascript">
function click() {
alert("boom!!!");
}
</script>
<form>
<input type="button" value="touch me" onclick="click()" />
</form>
I'm wondering why it does not work because even if click is a word that already exist in javascript, I thought that the "" would tell the browser that it is the function click that I just created.