an HTML, CSS and JavaScript code for getting a watermark at windows print mode, and the watermark is getting diagonally and dynamically on each page. The watermark is created dyanamically on print event of JavaScript, when the header section is not available for <style> components and thus creating the watermark and its body dyanamically in JS
Demo Watermark demo site
Text Watermark
<button id="btnPrint" type="button" onclick="printDiv('divPrint', 'text');">Print</button>Image Watermark
<button id="btnPrint" type="button" onclick="printDiv('divPrint', 'img');">Print</button>