Submit a form in a popup, and then close the popup

后端 未结 5 1723
终归单人心
终归单人心 2020-12-13 05:23

This seemed so trivial when I started off with it! My objective is this:

  • When user clicks on a button, open up a form in a new window.
  • Once the form
5条回答
  •  天命终不由人
    2020-12-13 05:35

    Here's how I ended up doing this:

            
    Certificate 1:
    Certificate 2:
    function closeSelf(){ document.forms['certform'].submit(); hide(document.getElementById('divform')); unHide(document.getElementById('closelink')); }

    Where hide() and unhide() set the style.display to 'none' and 'block' respectively.

    Not exactly what I had in mind, but this will have to do for the time being. Works on IE, Safari, FF and Chrome.

提交回复
热议问题