Skip to content

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

Notifications You must be signed in to change notification settings

Millstack/watermark-print-dynamic-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

watermark-print-dynamic-js

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>

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages