Web form errors open on a new page

I did find another post in the community that refers to using Javascript to stop this from happening.