Here's a piece of code that works fine in FireFox, but not in IE. What am I doing wrong?
PHP Code:<html>
<head>
<title>Inheriting Array class</title>
<script>
function ExtArray() {}
ExtArray.prototype = new Array();
var sources = new ExtArray();
sources.push('First');
sources.push('Second');
alert(sources.length + ': [' + sources[0] + ',' + sources[1] + ']');
</script>
</head>
<body>
</body>
</html>




Bookmarks