You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<button onclick="showDialog()">
Open my dialog!
</button>
<script>
var myDialog = document.getElementById('my_dialog');
var showDialog = function () {
myDialog.showModal();
}
var closeDialog = function () {
myDialog.close();
}
</script>
<body>
<div
aria-labelledby="modal-title"
class="c-modal"
id="modal"
role="dialog"
tabindex="-1">
<div role="document">
<h2 id="modal-title">Save changes?</h2>
<p>The changes you have made will be lost if you do not save them.<p>
<button type="button">Save</button>
<button type="button">Discard</button>
</div>
</div>
<main inert>
<!-- ... -->
</main>
</body>
The text was updated successfully, but these errors were encountered:
https://web-standards.ru/articles/focus-and-inert/#section-13
The text was updated successfully, but these errors were encountered: