|
This is the W3C way to do it but won't work in older / non-standard following browsers.
Referencing elements through number rather than name actually makes it very easy to loop through all images, forms, form elements, applets, scripts, stylesheets etc applying something to each as you do. This approach pre-dates W3C DOM so is ideal for wide audiences - even Netscape 4 will understand!
Anyway, you could use the name attribute validly with the following <!DOCTYPE> :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/REC-html401/loose.dtd">
|