开发者

Problem with opening new window in IE

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜