Javascript can be used to create simple message boxes to interact with users. Code like alert("Hi") displays a message saying hi, while prompt("Hi what is your name?") asks the user their name and allows them to enter a response. These basic Javascript functions provide ways to get input from and present simple messages to users.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
33 views1 page
Scribd
Javascript can be used to create simple message boxes to interact with users. Code like alert("Hi") displays a message saying hi, while prompt("Hi what is your name?") asks the user their name and allows them to enter a response. These basic Javascript functions provide ways to get input from and present simple messages to users.