Answer the question
In order to leave comments, you need to log in
How to open a form in a new window in React without browser blocking the popup?
There is a form
const ref = useRef<HTMLFormElement>(null);
useEffect(() => {
ref?.current?.submit();
});
return (
<form action="https://google.com/contact" method="POST" target="_blank" ref={ref}>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question