<script type="text/javascript"> function valid() { alert("hi"); var a=document.f1.fname.value;// text box value if(a==null ||a=="") { alert("Please Enter your FirstName !"); return false; } <%Scanner s = new Scanner(new File( "dict.Dic")); ArrayList<String> list = new ArrayList<String>(); while (s.hasNext()) { list.add(s.next()); } s.close(); for (String content:list) {%> //var li="ji"; alert(<%=content%>); return false; <%}%> return true; } </script>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)