Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

output in javascript

console.log(a);             // write to the browser console
document.write(a);          // write to the HTML
alert(a);                   // output in an alert box
confirm("Really?");         // yes/no dialog, returns true/false depending on user click
prompt("Your age?","0");    // input dialog. Second argument is the initial value
Source by htmlcheatsheet.com #
 
PREVIOUS NEXT
Tagged: #output #javascript
ADD COMMENT
Topic
Name
6+6 =