Getting screenshot

Hi. Is there any method using javascript or other front-end technology that allows you to take screenshot of a given area or object (like an swf) of a webpage?