I want to know whether it is possible to obtain the label name along the text box. For example, the following code asks the user for their name and "Your name" is the label.
<label>Your name:</label> <input type="text" size="15" name="name" />
I want to know if I can obtain the label name "Your Name" using javascript.