What this does is print the whole page. What traditionally we do is if we want to print some part of the page then We open the content in a new page and place a button there a print button which triggers the above command. Because the Print command is always associated with the parent window.
But a Jquery Plugin is present by which we can print a specific content of an id in the same page. The link to this plugin is :-