Of these two, only gidden() works.
<span onclick="hidden()">hello</span>
<span onclick="gidden()">world</span>
<script type="text/javascript"><!--
function hidden() {
alert("hello");
}
function gidden() {
alert("world");
}
--></script>
Is hidden() a reserved function of javascript? Cause that is the only thing I can think of for this to make sense. If so, what does it do?
Yes, It is a reserved word. You'd better avoid the following identifiers as names of JavaScript variables. These are predefined names of implementation-dependent JavaScript objects, methods, or properties.
here is the list of all JavaScript Reserved Words
Hope this helps.