I need help with some javascript and was wondering if anyone knew of a good message board like this one....where people actually reply 🙂
here's my problem right now:
print("<SCRIPT LANGUAGE=\"JavaScript\">
function printWindow() {
bV = parseInt(navigator.appVersion);
if (bV >= 4) window.print();
}
</script>");
print("<a href=\"javascript:printWindow()\" target=\"right\">viewPrint.php");
this creates a button that when i click on it it prints a certain window that i deem when using frames.
My problem is that I have a list that alternates color so that one row is gray, the next white etc. Because of this i keep my browser set to "Print Background images" so that is prints the background color of the table row.
But there are times that I want the "Print Background" color off so that it prints white. Can you do this through Javascript so that it will shut off the "print bg object" and the turn it back on afterwards, or something similar?