[COLOR=red]Search by Word script[/COLOR]
[COLOR=red]It gives error but i don’t know whats the problem is there.[/COLOR]
[COLOR=red]Please help me in this script…[/COLOR]
<html>
<head>
<title>java</title>
<script>
aa=new Array();
aa[0]=“Amit”;
aa[1]=“Rahul”;
aa[2]=“Vijay”;
aa[3]=“Ronak”;
aa[4]=“Varun”;
aa[5]=“Akshay”;
a=0;
ab=new Array();
fn=new Array();
srch=prompt(“Enter char:”,"");
for(i=0;i<=aa.length;i++)
{
ab=aa*;
abc=ab.join("");
if(abc.charAt(0)==srch)
{
fn[a]=aa*;
a=a+1;
}
}
document.write(fn);
</script>
</head>
<body>
</body>
</html>