Passed the section, code is working fine. When clicking the submit button, the header is presented correctly but then after about a second an entirely new freeCodeCamp window opens where the h1 is supposed to go and will continue to open new windows within everytime submit is clicked.
Thank you for helping make FCC better. Bugs can be reported as GitHub Issues. Whenever reporting a bug, please check first that there isn’t already an issue for it and provide as much detail as possible.
Got it. Will check there and post(if it isn’t there) and sorry for posting in the wrong section!
No worries. Part of what we do here is help you navigate the FCC contribution process.
this happens because when hitting submit it has a default action which reloading the page, so you have to prevent this action(event) by using
event.preventDefault() inside your