Displaying 1 result from an estimated 1 matches for "login_username_index".
2007 Dec 06
11
Weird Prototype behavior
...#39;>
//<![CDATA[
Event.observe(window, ''load'', function () {
alert($(''login_username''));
});
//]]>
</script>
</script>
</head>
<body>
<input type=''text'' name=''login_username'' id=''login_username_index'' />
</body>
</html>
IE6 alerts "[object]".
IE7 alerts "[object]".
Opera 9 alerts "[object HTMLInputElement]".
FF2 alerts "null".
If I change the name of the input element from "login_username" to
anything else, all browsers...