$('#btn1').click(function(){
this.css("visibility","hidden");
window.print();
this.css("visibility","visible");
});
*btn1 is the id of the button.
* Don't forget to add a reference to jquery above in your document.
* If you want to print some div or some part of the html document and not the whole document. Visit:
http://projects.erikzaadi.com/jQueryPlugins/jQuery.printElement/[
^]
* If you need any other support do let me know.
I hope I answered your question.
Watch my first article posted on codeproject and comment and vote:
http://www.codeproject.com/KB/HTML/speechinputapi.aspx
or http://blog.robinrizvi.info
Drop me a mail for any comments, suggestions or questions.
mail@robinrizvi.info