=================

I have tried like this.. 
function fnPrint()
   { 
    document.getElementById('print').style.visibility='hidden'; 
    window.all.print();
    document.getElementById('print').style.visibility='visible'; 
}and also tried with this
self.print();and also tried with this....
this.window.print();not working with this three scenarios..

=================

type javascript directly into safari's URL bar [and then hit 'return'] to try it out. all these did not work:



Open js debug. And there were not any exceptions.

=================

 

REF:

http://www.boutell.com/newfaq/creating/printbutton.html