<!DOCTYPE html> <html> <title>Web Page Design</title> <head> <script> //Demo 4 var urname = prompt("What is your name?"); if(urname == "Min Xuan"){document.write("Hello Min Xuan!");} else{document.write("Hello Stranger!");} document.write("<br><br>"); </script> </head> <body> </body> </html>
We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy. Accept Learn more