This doesn't work:
<head>
<!-- some things snipped -->
<script>
function display()
{
alert("hey");
}
</script>
</head>
<body>
<form >
<input type="button"
name="display" <!-- Problem -->
value="Display All"
onclick="displa y()" />
</form>
</body>
But with one character different, this does:
<!-- more things snipped -->
<form >
<input type="button"
name="displa" <!-- Problem solved -->
value="Display All"
onclick="displa y()" />
</form>
The difference is in the name attribute. I can name it "displa",
"displays", "displat", or "displa*" and it works. But when I call it
"display" it doesn't work.
Why?
Thanks.
Dennis
<head>
<!-- some things snipped -->
<script>
function display()
{
alert("hey");
}
</script>
</head>
<body>
<form >
<input type="button"
name="display" <!-- Problem -->
value="Display All"
onclick="displa y()" />
</form>
</body>
But with one character different, this does:
<!-- more things snipped -->
<form >
<input type="button"
name="displa" <!-- Problem solved -->
value="Display All"
onclick="displa y()" />
</form>
The difference is in the name attribute. I can name it "displa",
"displays", "displat", or "displa*" and it works. But when I call it
"display" it doesn't work.
Why?
Thanks.
Dennis
Comment