I Created A Dialog, Now How Can I Close It?

后端 未结 5 1501
深忆病人
深忆病人 2021-01-25 22:53

I have included a link to my site below for review of the JS in the head section, as well as to allow YOU to see how I set it all up. If you don\'t want to use the link, I\'ll a

5条回答
  •  忘掉有多难
    2021-01-25 23:26

    If you don't want to show it again, you could call

    document.getElementById('div2').remove();

    in the onclick method of the close button.

    Or if you might use it again, call

    document.getElementById('div2').style.display = 'none';

    To call the close function from the href attribute:

    Nope, Get This Out of The Way

提交回复
热议问题