Automatically Increase Array size Using JavaScript

JavaScript code is here in increase the size. 
  1. <html>  
  2.     <body bgcolor="lightgreen">  
  3.         <h3>Automatically increases size of array </h3>  
  4.         <hr color="green">  
  5.             <p>Currently size of array is 3 ([1],[1],[2])</p>  
  6.             <head><script type="text/javascript">  
  7. var someArray = new Array();  
  8. alert(someArray.length);  
  9. someArray[0] = "A";  
  10. alert(someArray.length);  
  11. someArray[1] = "B";  
  12. alert(someArray.length);  
  13. someArray[2] = "C";  
  14. alert(someArray.length+" ----> This is the increased index i.e [3]...Now array size becomes 4");  
  15. </script>  
  16.         </head>  
  17.     </body>  
  18. </html>  
Thank you, keep learning and sharing.