Determining the Size of the List : List « Form Control « JavaScript DHTML






Determining the Size of the List


<HTML>
<HEAD>
<SCRIPT LANGUAGE = "JavaScript">
     function moveon() {
        var urlAddress = "";
        urlAddress = document.forms[0].Edit1.value;
        parent.frames[1].location = urlAddress;
        document.forms[0].Edit2.value = parent.frames[1].history.length;
      }
  
</SCRIPT>
</HEAD>
  
<BODY>
<FORM>
<INPUT type="text" name="Edit1">
<INPUT type="button" value="move" onClick="moveon()">
<INPUT type="text" name="Edit2">
</FORM>
</BODY>
</HTML>
           
       








Related examples in the same category

1.Determining the Value or Text of the Selected Option
2.Determining the Values of Multiselection Lists
3.Selection List Event Handling
4.Cycling through a Multiple-Selection List