Sponsored Ad

Monday, August 16, 2010

How to Process Array in JavaScript

This is simple ASP.NET – JavaScript  article which will help you to navigate through the all elements of array. You can copy the code in below and run at your visual studio. Please let me know if you face any problem.

Output:

How to Process Array in JavaScript 

Source Code:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>

    <script type="text/javascript">
var myList = new Array("http://IndiHub.com", "http://InterviewCity.com", "http://CsharpHub.com","http://SoftwareTestingNet.com")
for (i=0; i<myList.length; i++){
document.write(myList[i] + "<br>")
}
    </script>

</head>
<body>
</body>
</html>

0 comments:

Post a Comment

Sponsored Ad

More Related Articles

Website Update

Followers