An alert window is a small window popup. We can display text on it with the
To write onto our document (or within the browser), we use the
document.write() function. We'll learn all about the
document object in an upcoming lesson.
Thus, we have three ways to output text:
alert("Hello world!"); document.write("Hello world!"); console.log("Hello world!");
As you go through this tutorial, it's important to try out what you learned on your own, and use one of the three ways to check your outputs.
Want your web site to display more quickly? This book presents 14 specific rules that will cut 25% to 50% off response time when users request a page. Author Steve Souders, in his job as Chief Performance Yahoo!, collected these best practices while optimizing some of the most-visited pages on the Web.$ Check price
Relieve your stress, back, neck and sciatic pain through 1,782 acupuncture points for immediate neck pain relief. Made for lower, upper and mid chronic back pain treatment, and improves circulation, sleep, digestion and quality of life.$$ Check price