Found 32 Questions For JavaScript

How to print page using JavaScript ?

Updated on 26-Sep-2021 19:21:08
To print a page in JavaScript, use the print() method. It opens up the standard dialog box, through which you can easily set the printing options like which printer to select for printing. Page print in JavaScript is a simple code in JS used to print the content of the web pages. The print() method prints the contents of the current window.(window.print) It basically opens Print dialog box which lets you choose between various printing options. Syntax: window.print() Parameters... Read More

How to create accordion on blogger using HTML & JavaScript ?

Updated on 25-Sep-2021 1:02:18
Create accordion using html & javascript on blogger. Its too much easy to create accordion using html & javascript .  Below is the code by using you create an accordion on blogger using html & javascript. HTML <button class="acc">Show Answer</button> <div class="pnl"> <p></p> </div> CSS .acc { background-color: #eee; color: #444; cursor: pointer; padding: 18px; width: 100%; border: none; text-align: left; ... Read More



Advertisements

ads