Html myWindow.print()不会在Internet Explorer 11中打开“打印”对话框

Html myWindow.print()不会在Internet Explorer 11中打开“打印”对话框,html,Html,单击该按钮可在宽200px、高100px的新浏览器窗口中打开“关于:空白”页面 试试看 函数myFunction(){ var myWindow=window.open(“https://www.google.com“宽度=200,高度=100”); myWindow.print(); } 在此代码库中,myWindow.print()不会在Internet Explorer 11中打开打印对话框。我想打开“窗口打印”对话框 如果我使用window.print(),它将打印一个空白页面,而不是

单击该按钮可在宽200px、高100px的新浏览器窗口中打开“关于:空白”页面

试试看 函数myFunction(){ var myWindow=window.open(“https://www.google.com“宽度=200,高度=100”); myWindow.print(); } 在此代码库中,
myWindow.print()
不会在Internet Explorer 11中打开打印对话框。我想打开“窗口打印”对话框

如果我使用
window.print()
,它将打印一个空白页面,而不是我想要的页面。我想
myWindow.print()
打开一个打印对话框

请帮忙

可能的重复可能的重复
<!DOCTYPE html>
<html>
    <body>

        <p>Click the button to open an about:blank page in a new browser window that is 200px wide and 100px tall.</p>

        <button onclick="myFunction()">Try it</button>

        <script>
            function myFunction() {
                var myWindow = window.open("https://www.google.com", "", "width=200,height=100");

                myWindow.print();    
            }
        </script>

    </body>
</html>