admin管理员组

文章数量:1433509

I'm trying to make my website iphone/ipad/android friendly.

Now, is there any way to make the javascript .print() function work on any of these devices? Couldn't find an answer on this subject.

Looking forward to your replies, Thank You in advance.

I'm trying to make my website iphone/ipad/android friendly.

Now, is there any way to make the javascript .print() function work on any of these devices? Couldn't find an answer on this subject.

Looking forward to your replies, Thank You in advance.

Share asked Feb 22, 2012 at 15:00 michaeltintiucmichaeltintiuc 67115 silver badges31 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 8

The function window.print() will work if you are using iOS 4.2 or later because that version adds AirPrint support.

Android phones don't seem to have native support for printing yet however you might be interested in reading about Cloud Print. However that solution requires a "cloud enabled" printer.

The Javascript function print() will work fine on the iPhone and iPad.

本文标签: iphoneipadandroid javascript print()Stack Overflow