There is a dir="rtl" attribute on the html element of this document. The dir attribute is not applied to body or head elements.

Alert box

Objective: Does dir="rtl" on the html element affect the placement of items in a JavaScript alert box?

The button uses the JavaScript alert() method to open an alert box.

Check whether the items on the alert box run from right to left or left to right. Also, check whether the text 'W3C' appears to the left of the Hebrew text in the message.

Confirm dialog box

Objective: Does dir="rtl" on the html element affect the placement of items in a JavaScript alert box?

The button uses the JavaScript confirm() method to open an confirmation box.

Check whether the items on the confirmation box run from right to left or left to right. Also, check whether the text 'W3C' appears to the left of the Hebrew text in the message.

User prompt

Objective: Does dir="rtl" on the html element affect the placement of items in a JavaScript prompt box?

The button uses the JavaScript prompt() method to open an user prompt box.

Check whether the items on the alert box run from right to left or left to right. Also, check whether the text 'W3C' appears to the left of the Hebrew text in the message. Also check whether the default input supplied runs left-to-right in the same way, and is right-justified.