Answer & Solution
Answer: Option Option B
Solution:
The primary purpose of the window.print() method in JavaScript is to print the current web page or a specified element. It triggers the print functionality of the browser, allowing users to generate physical or digital copies of the content for offline use or reference. Using window.print() opens the print dialog, where users can choose printing options and initiate the printing process. The method is not used for opening new browser windows, displaying alert messages, or redirecting to other URLs.