Window and Abstract roles

Hey ,

I'm thrilled to help you learn JavaScript. Unfortunately, you've landed on a page where you cannot access with your current purchase.

Please upgrade (use this link) access this content.

I'm super eager to help you learn more!

Window and Abstract roles

There are two more categories of roles:

  1. Window roles
  2. Abstract roles

We’ll go through them together in this lesson. It’ll be short, unlike the lessons you just went through.

Window roles

There are two window roles:

  1. alertdialog
  2. dialog

Dialog is a window that prompts user to enter or respond to information. The Modal is an example of a dialog.

Example of a dialog.

Alertdialog is a specific type of dialog. You should use alertdialog over dialog if you need users to manually close an important alert message.

Abstract roles

Abstract roles are roles used to create other types of aria roles. You will never use any abstract roles.

That’s it! I said this would be short, didn’t I?