现在的位置: 首页 > 综合 > 正文

window.print(); is not working in Safari Browser Windows XP

2012年07月21日 ⁄ 综合 ⁄ 共 603字 ⁄ 字号 评论关闭

 

 

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

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:

[Image: http://www.appletalker.com/grafix/safari-urlthisprint.jpg]
[Image: http://www.appletalker.com/grafix/safari-urlselfprint.jpg]
[Image: http://www.appletalker.com/grafix/safari-urlwindowprint.jpg]

Open js debug. And there were not any exceptions.

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

 

REF:

http://www.appletalker.com/forum/index.php?req=thread&id=949

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

抱歉!评论已关闭.