OWASP is the short form for Open Web Application Security Project, which concentrates on finding the security vulnerabilities or the possible attacks can cause problems to applications. In this article I concentrate on how the front-end or the HTML5 and javascript vulnerabilities can be taken care. One of the major topics around this is Content … Continue reading “OWASP In javascript”
Category: HTML5
Web-Workers
A web worker is a JavaScript that runs in the background. Independent of other scripts, without affecting the performance of the page. Web worker specification defines an API for spawning background scripts in our web application. Web workers allow us to do things like fire up long-running scripts to handle computationally intensive tasks, without blocking … Continue reading “Web-Workers”
Convert base64 string to a file in javascript
I lately realized that people who are using my technique to convert a file to a base64 string in javascript are searching out for a solution to convert base64 to a file. This article mainly concentrates on converting the base64 back to the respective file with their respective formats. There are many ways to achieve … Continue reading “Convert base64 string to a file in javascript”
Custom HTML Audio tag
There may be hundreds of Javascript and HTML audio players available, but always the requirement will be somewhat different from the current one. So i felt it is better to learn customizing the audio player according to my own needs. Let’s see how i could do it in a simple way, Firstly I create an audio … Continue reading “Custom HTML Audio tag”
Introduction to your website/product with intro.js
This would be the best way to introduce your product to your visitors or a website with a tour. Intro.js is javascript plugin features in providing a step a step guide to a product. Let us directly jump to How to use? Download the files from Recent upload Let us create a basic HTML page … Continue reading “Introduction to your website/product with intro.js”
Convert a File to base64 String in JavaScript
The idea behind my concept is simple. Firstly pick the file which you want to convert from the system’s HDD using HTML5 file browser. Once the file is selected, read the file as binary string using the FileReader API. At last convert the binary string to base64 using JavaScript. Let’s See in detail:- Attach a … Continue reading “Convert a File to base64 String in JavaScript”
Custom HTML File Browser
There may be many ways to customize the file browser provided by HTML5, but i chose the easiest way to achieve it. Firstly create an Input tag with the type as file and attach a function for ‘onchange’ event. Hide the browser tag by setting the display style of this tag to none. Create one … Continue reading “Custom HTML File Browser”