Client Script closing the web form on submitting ERPNext

How can I automatially Close Web Form on Submitting