Answers for "alert in javascript syntax"

3

javascript prompt

var person = prompt("Please enter your name", "Harry Potter");

if (person != null) {
  document.getElementById("demo").innerHTML =
  "Hello " + person + "! How are you today?";
}
Posted by: Guest on July-29-2020
0

how to make an alert on a page

go to inspect element, go to console. type in 
alert("text")
Posted by: Guest on June-18-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language