JavaScript: Lesson 6

Learning About Arrays & Sorting Listboxes

When you enter text into the textboxes and press OK, your data is sent to my custom function.
There, all the items of data are processed. Each item is added to the list box.

However, I use a loop and an array to hold the data you entered. Then I sort the array, create a new option
object & add it to the listbox. Finally, you assign a value to the new option so it will show up in the listbox.

Then, you let the loop continue until all items in the array are added.