Till now we’ve looked at two important methods, the alert() method of the window object and write() of document object. You’ve also seen how text or numbers can be passed to these methods.
document.write("Your name is " + vis_name);
alert("Welcome " + vis_name + "\nHow are we today?");
Remember, a variable should be placed outside the quotes to display its value.
Chris Clark bought Pizza.com in 1994 and sold it in 2008 for $2.6 Million. The sale was brokered by Sedo. [more...]