// show an alert on the screen
alert("My alert\nNext line");
// confirm pop-up alert window with OK or cancel
function Get_User_Answer() {
if ( confirm('Click the OK\nor Cancel') == true) {
text = "You pressed OK!";
} else {
text = "You canceled!";
}
// prompt
filename = prompt("Please enter a file name", "temp.txt");