1.
What is the primary purpose of the window.print() method in JavaScript?
2.
How can you invoke the print functionality in JavaScript?
3.
What happens when you call the window.print() method in JavaScript?
4.
Which HTML element is commonly used to create a print button in JavaScript?
5.
How can you add a print button to an HTML page using JavaScript?
6.
Which JavaScript method is commonly used to handle the click event of a print button?
7.
What is the purpose of using CSS media queries with print styles in web development?
8.
How can you apply print-specific styles to an HTML page using CSS media queries?
9.
Which JavaScript method is used to open the print dialog programmatically?
10.
What does the @media print {} CSS rule target?