There is something very strange: I clicked a button in a pop-up window, and unexpectedly the pop-up window disappeared. After debugging by the company's js master, I discovered the mystery.
Copy the code code as follows:
<button onclick="add_q()">Add Questionnaire</button>
Just add a type="button":
Copy the code code as follows:
<button type ="button" onclick="add_q()">Add Questionnaire</button>
Different browsers support different rules