& ltmeta name = \" Generator \" content = \" EditPlus?\" & gt& lt" />
Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Js uses prompt method to pop up a dialog box. Enter 1 to pop up a new day, 234 to pop up hard work, and I/O to pop up a rest. What happened?
Js uses prompt method to pop up a dialog box. Enter 1 to pop up a new day, 234 to pop up hard work, and I/O to pop up a rest. What happened?
& lt! doctype html & gt

& lthtml lang = " en " & gt

& lthead & gt

& ltmeta charset="UTF-8 " >

& ltmeta name = " Generator " content = " EditPlus?" & gt

& ltmeta name = " Author " content = " " & gt;

& ltmeta name = " Keywords " content = " " & gt;

& ltmeta name = " Description " content = " " & gt;

< title & gt document

& lt/head & gt;

& ltbody & gt

& lt script & gt

Var x=prompt ("Please enter 1-7", "1");

If (x== 1)

Alert ("new day");

else if(x==2||x==3||x==4)

Alert ("efforts");

other

Alert ("rest");

& lt/script & gt;

& lt/body & gt;

& lt/html & gt;