How to attach an event to onSubmit event of form with chaining earlier attached methods as well?
问题 Actaully my application is having hundreds of pages. Now i have to attach an event 'disablePage' on onSubmit of form. I don't want to go to each and every page and write: <form name="frmname" onSubmit="disablePage();"> What i am doing right now is:- excerpt from common.js file; [ included in all pages ] /* we have to attach 'attachFormSubmit' method on onLoad event, otherwise forms[0] will always be null. If there is any alternative, then please suggest one */ if (window.addEventListener){