not printing smartphp calendar event text in mozilla
Hi,
I am using smart php calendar in my application here i am using custom print for print background colors and hole calendar.
but when i print the calendar its working in google crome but not working in mozilla..
here is my custom print code..
Code:
<script>
function printPage(printpage1)
{
var headstr = "<html><head><title></title></head><body><div style='-webkit-print-color-adjust:exact; color: #ffffff;'>";
var footstr = "</div></body>";
var newstr1 = document.getElementById(printpage1).innerHTML;
var oldstr = document.body.innerHTML;
document.body.innerHTML = headstr+newstr1+footstr;
window.print();
document.body.innerHTML = oldstr;
location.reload();
return false;
}
</script>