Your text is replicated in an alert box. One of these properties is value, which contains the value of the myText element - the text entered into the HTML myText element. So again we see HTML and JavaScript talking to each other. Properties We may wish to see a list of all the properties of myText. Different HTML elements have different features, for example, an anchor is the only element to have an HREF attribute, and an IMG is one of the few elements to have a SRC attribute.
Some elements contain other elements, such as tables and selection boxes.
And some elements have DOM references that are not immediately obvious, such as tables. But I hope to sort this out for you. Let us look at an example in which we display the information from a radio button group, in a text box. This may look complicated - but don't be put off. I have extended the basic principles of reading and writing the DOM into a more useful program.