Suppose i have a page with many forms, and i don't know eather theirs names or identifiers. How to catch the form that the user have submitted to add some inputs to it before send its post data to server ?

Please, tell how to do that with pure Javascript, no jQuery.
Thank you