SHARE
TWEET

Untitled

a guest Jun 27th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <dialog>
  2.   <p>окно</p>
  3.   <button id="close">Закрыть</button>
  4. </dialog>
  5. <button id="show">Открыть  окно!</button>
  6.  
  7.  
  8. <script type = text/javascript>
  9. var dialog = document.querySelector('dialog');
  10. document.querySelector('#show').onclick = function() {
  11.   dialog.show();
  12. };
  13. document.querySelector('#close').onclick = function() {
  14.   dialog.close();
  15. };
  16. </script>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top