לאתר זה תהיה פונקציונליות מוגבלת בזמן שאנו מתחזקים אותו לשיפור החוויה שלך. אם מאמר מסויים לא פותר את הבעיה שלך וברצונך לשאול שאלה, קהילת התמיכה שלנו מחכה לעזור לך ב־Twitter תחת ‎@FirefoxSupport וב־Reddit תחת ‎/r/firefox.

חיפוש בתמיכה

יש להימנע מהונאות תמיכה. לעולם לא נבקש ממך להתקשר או לשלוח הודעת טקסט למספר טלפון או לשתף מידע אישי. נא לדווח על כל פעילות חשודה באמצעות באפשרות ״דיווח על שימוש לרעה״.

מידע נוסף

How to launch a preview by javascript?

  • 4 תגובות
  • 2 have this problem
  • 1 view
  • תגובה אחרונה מאת genahost

more options

How to launch a preview by invokation js-method window.print() like in Chrome? Is it possible in Firefox?

How to launch a preview by invokation js-method window.print() like in Chrome? Is it possible in Firefox?

כל התגובות (4)

more options

Hey there. From what I can find, it doesn't look doable through Javascript; the most useful discussion I found is from way back on Stack Overflow http://stackoverflow.com/questions/230205/how-can-print-preview-be-called-from-javascript.

more options

The only way I can find to invoke or call the print preview in Firefox is through add-ons with "PrintUtils.printPreview(PrintPreviewListener);", source: https://support.mozilla.org/en-US/questions/948326.

more options

Why do you want to show Print Preview instead of calling the Print dialog?

more options

jscher2000 said

Why do you want to show Print Preview instead of calling the Print dialog?

thanks for your recall, It's just requirement of app customers. They like Chrome, but works in Mozilla. Nevertheless, they want to invoke preview by clicking button on html-page