I'll know my song well before I start singin'.” Bob Dylan
A resource for web developers a code snippet library with step by step tutorials.

a resource for web developers...

       

Search Amazon

JavaScript: DOM tutorial code snippet 7.

 

Up Up to JavaScript: DOM overview page

 

 

Reference and gain access to form field values with dot and array notation.

Use an array to store form fields' values and a 'for loop' to access the values.

Declaring an new array of undetermined size to store the values using 'new Array()'.

Write the form field values to alert() dialog boxes.

 





Output view



Back to top

 

Bookmark and Share

 

Copyright © 2006-2010 justfigures.co.uk