This text is in the main page

There are two divs below this paragraph called doc1 and doc2. The two buttons fill them. The demo is that you can indeed pass information as a closure. See the html source to see how it's done. The first button links to a page that sleeps for a second before returning it's text. The second button links to a page that returns immediately. Try hitting each of them at various times to see what happens. Reload the page to clear them.

 

 

This text is in the main page

( Note the page is not reloading upon clicking )