$script = " jQuery(document).ready(function(jQ){ function printPage() { var html, css, csss_file, printWin; css = \"\"; css = \"<style type='text/css'>\"+css+\"</style>\"; css_url = ''; if ( css_url !== '' ) { css_url = \"<link rel='stylesheet' type='text/css' href='\"+css_url+\"' media='print' />\"; } html = '<html><head>'+css+css_url+'</head>'+jQ(id).html()+'</html>'; printWin = window.open('', '', 'left=100, top=100, width=600, height=400, toolbar=0, scrollbars=0, status=0' ); printWin.document.write(html); printWin.document.close(); printWin.focus(); printWin.print(); printWin.close(); } var id; id = '#print_div'; jQ('#print_button').css('visibility', 'visible'); jQ('#print_button').click(printPage); }); ";
This is supposed to create a print button for my form that is encapsulated in 'print_div'.
But somehow the button doesn't work on my page, but works on other websites.
Can admintools somehow interfere in such an embedded script?
Best regards Kenneth