|
Hi Friends,
I am having a problem with javascript in safari 5.1.1.
i am using javascript code to print a popup page . it is working fine in all browsers but it is not working properly in safari 5.1.1(below Safari 5.1.1 it is working). The problem is it is not showing the content of the popup in safari 5.1.1 where as it is showing in other browsers.
Please help me. below is the code.
<html >
<head>
<title></title>
<script type="text/javascript" language="javascript">
function Print() {
var printcontent = "";
printcontent="<body bgcolor=blue>Hello</body>";
var winprint = window.open('', '', 'left=0,top=0,width=950,height=600,toolbar=0,scrol lbars=1,status=0,resizable=1');
winprint.document.open();
winprint.document.write(printcontent);
winprint.document.close();
winprint.focus();
winprint.print();
winprint.close();
}
</script>
</head>
<body >
<input type="button" value="Print" onclick="javascript:Print();" />
</body>
</html>
|