If you click the submit form button and submit it in 10 seconds, can you do this? What we need now is: after the user clicks the submit button, it puts an advertisement and submits the form to the server. can this be done? I tried it here. I can only open a 10-second advertisement after submitting it to the server end ------ solution -------------------- use Javascript ------ solution -------------------- setInterval (the user clicks the submit form button, can I submit the job in 10 seconds?
What we need now is:
After the user clicks the submit button, put an advertisement and submit the form to the server. can this be done?
I tried it here. I can only open a 10-second advertisement after submitting it to the server.
------ Solution --------------------
Use Javascript
------ Solution --------------------
SetInterval ("Fig ()", 10000)
------ Solution --------------------
You can fully consider using Ajax! The submission is in the background, and the front-end does not have to reflect your advertisement.
------ Solution --------------------
SetInterval ("Fig ()", 10000)
------ Solution --------------------
You can use windows. setTimeout () in javascript for implementation.
------ Solution --------------------
Stop using Javascript for 10 seconds and submit again.