Download a HTML content as pdf using javascript – jsPDF

Using jsPDF library, you can download the div containing graphs, tables, contents as a PDF. This is a HTML5 client-side solution for generating PDFs. Simply include library in your <head>, generate your PDF using the many built-in functions, then create a button to trigger the download. <script type=”text/javascript” src=”http://cdnjs.cloudflare.com/ajax/libs/jspdf/0.9.0rc1/jspdf.min.js”></script> Create a object: var doc = […]

How to associate functions with objects using JavaScript?

In JavaScript you can associate functions with objects. Here we will demonstrate how the constructor creates the object and assigns properties. Object is a standalone entity, with properties and type in JavaScript. JavaScript objects can have properties, that define their characteristics. Objects and properties: An object in JavaScript has properties associated with this. So, a […]

How to Increase E-commerce Site Speed for Fast Conversions?

Website navigation and speed play a significant role in the success of online business. Attractive offers and discount coupons are no longer sufficient to stay ahead of the competitor. User experience is critical these days and it includes site reliability, speed, and smooth navigation. Among these factors, e-commerce site speed has a big role in […]