Q. What is the use of this JavaScript statement?

Code:
<button onclick="window.print()">Submit</button>
  • (A) It will write "Submit" on the current Window
  • (B) It will print the content of the current page
  • (C) It will write the content of the current page in the browser’s console
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (B) It will print the content of the current page

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
243
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
99%
Success Rate