Java Script代码来更改窗口.Print()将窗口位置弹出到系统屏幕中心 [英] Java Script code to change the window.Print() pop up window position to system screen center
本文介绍了Java Script代码来更改窗口.Print()将窗口位置弹出到系统屏幕中心的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我单击打印"按钮时,我已按如下方式编写了Java脚本
Hi,
When i click on print button, i had written the java script as follows
function printPage()
{
window.Print()
}
它在左上角显示打印弹出页面.但我想在窗口的中心位置显示.
请找到我的解决方法,然后回复我.........
it displaying print pop up page on top left corner. But i want display in center position of window.
Please find my resolution and reply me........
推荐答案
据我所知,这不可能影响打印对话框的位置从浏览器中. (如果有人知道,我会很乐意将其删除).
无论如何,为什么需要这样做?
As far as I am aware it is not possible to affect the position of the print dialog from within the browser. (I''ll happily delete this if anyone does know of a way).
In any case, why do you need to do this?
这篇关于Java Script代码来更改窗口.Print()将窗口位置弹出到系统屏幕中心的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文