Sha256: 7957875615f1e7ed508605a023b7ad028ad8b76e29e4aa8cbb6540606402bc3d

Contents?: true

Size: 834 Bytes

Versions: 2

Compression:

Stored size: 834 Bytes

Contents

<html>

<head>
<title>Modal 1</title>

<script>
  function delay_action(other_function) {
    setTimeout(other_function, 3000);
  }

  function close_window() {
    window.returnValue = 22
    window.close()
  }
  
  function modal1() {
    var retValue = window.showModalDialog(
      "modal_2.html", self,
      "status:no;resizable:Yes;help:no;maximize:no;minimize:no;scrollbars:no;");
  }

</script>

</head>

<body>

<h2>Modal 1</h2>

<h3>Close buttons</h3>
<input id=close_window type=button onclick="close_window()" value="Close window"/>
<input id=delayed_close type=button onclick="delay_action('close_window()')" value="Close window with delay" />

<h3>Nested modal</h3>
<input id=launch_modal_button type=button onclick='return modal1();' value="Launch another modal"/>

</body>
</html>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
meeane-page-object-0.1.10 features/html/modal_1.html
meeane-page-object-0.1.8 features/html/modal_1.html