Add comments to article.md
I do not think it's likely but I do not want anyone to mistake those lines for legitimate JS expressions. I modified those two lines to match the format of pretty much every other comment in the article.
This commit is contained in:
parent
7533c719fb
commit
c8a52a182b
1 changed files with 2 additions and 2 deletions
|
@ -11,8 +11,8 @@ Document forms are members of the special collection `document.forms`.
|
|||
That's a so-called "named collection": it's both named and ordered. We can use both the name or the number in the document to get the form.
|
||||
|
||||
```js no-beautify
|
||||
document.forms.my - the form with name="my"
|
||||
document.forms[0] - the first form in the document
|
||||
document.forms.my; // the form with name="my"
|
||||
document.forms[0] // the first form in the document
|
||||
```
|
||||
|
||||
When we have a form, then any element is available in the named collection `form.elements`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue