开发者

Problem with opening new window in IE

开发者 https://www.devze.com 2023-03-28 19:10 出处:网络
Code $(document).ready(function($){ $(\'input[name=sumb_b开发者_JAVA技巧ut]\').bind(\'click\', function(){

Code

$(document).ready(function($){
    $('input[name=sumb_b开发者_JAVA技巧ut]').bind('click', function(){
        var print_text = "Test page";
        var newWin = window.open('','printWindow','Toolbar=0,Location=0,Directories=0,Status=0,Menubar=0,Scrollbars=0,Resizable=0'); 
        newWin.document.write(print_text);
        return false;
    });
})

Problem

IE shoots error message Object required in line

newWin.document.write(print_text);
0

精彩评论

暂无评论...
验证码 换一张
取 消