The forms attribute returns a collection of all the forms in a document. Retrieve the forms attribute from the document and examine its value.