I have followed the below article in order to create some custom new/edit/view forms for a list
Now in my newform.aspx page I have a submit button. Once I click that button I need to redirect to another page.
Problem here is that while the redirecting the new page is opening in a popup window. How can I open it in the current window?
Script used is below: