Why doesn't the name function work. The chrome console outputs 'string is not a function'? Please provide the answer. Thanks
<html>
<head>
<script type="text/javascript">
function name(){
alert('hello, world');
}
// with parameters
function test(x){
alert(x);
}
</script>
</head>
<body>
<form>
<input type="button" value="Press Me" name="foo" onClick="name()" />
</form>
<a href="#" onClick="test('help')">help</a>
<a href="#" onClick="name()">name</a>
<script>
name();
</script></code>
</body>
</html>