JavaScript Window print() Method
JavaScript Window print() Method
The print() method is used to print the contents of the current window. It will open the Print Dialog Box in which users select preferred printing options.
Syntax:-
Its syntax is:- window.print()