HTML - How to do a Confirmation popup to a Submit button and then send the request?

后端 未结 5 1876
北海茫月
北海茫月 2020-12-04 19:22

I am learning web development using Django and have some problems in where to put the code taking chage of whether to submit the request in the HTML code<

5条回答
  •  一整个雨季
    2020-12-04 19:33

    The most compact version:

    
    

    The key thing to note is the return

    -

    Because there are many ways to skin a cat, here is another alternate method:

    HTML:

    
    

    Javascript:

    
    

提交回复
热议问题