Take a screenshot of a window

In this tutorial you learn how to take a screenshot of one window, without any external programs. This is also good for e-mailing a webpage to yourself, since it can capture the contents of a browser window.