Workshop 2: Exercise 4: basics of confirm dialog usage

Back to Workshop 2 index

Click OK or Cancel below.

Exercise 4

Create a simple web page, where JavaScript confirm-dialog will pop out asking if the user is a student or not. If the user clicks OK write "Welcome student" to the page. If the user clicks cancel, write on the page: "Sorry, this page is for students only".