The text to display in the confirm box. Return Value TypeDescription A booleantrueif the user clicked OK, otherwisefalse. More Examples Display a confirmation box, and output what the user clicked: lettext; if(confirm("Press a button!") ==true) { ...