Accessibility · Senior · Question 24 of 75

What differs between dialog.show() and dialog.showModal()?

Show the answer

Correct answer: Only showModal() makes the page inert and uses the top layer

Explanation

show() is non-modal, so the rest of the page remains in use. Choose based on whether the task should block the page.

Further reading

Problem with a question

Accessibility · Senior · question 24

Test yourself

Take the Accessibility · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz