Check dirty state of a form

Hey, is there any way to check if a form is dirty ? I need to check the form in its entirety and not only a single field so I can't call variables of the page
Was this page helpful?