Drupal.behaviors.print = function(context) {window.print();window.close();}>

From Afghanistan: How to Pick a Present for Will and Kate