Dynamic Documents

It's often useful to generate web pages (dynamic documents) from Javascript code rather than from static files.

Create dynamic documents with document.write(). This method can:

Here's a sample page that simply displays today's date. Here's the source code. Discover: Compare the original source code to what you see when you View Source in the browser itself.

Lab

Your task:


Solution

Don't peek unless you're stuck!


Extra for Experts