JavaScript: The Execution Order of DOMContentLoaded and Load (window & document)

DOMContentLoaded event is fired when the initial HTML document has been completely loaded and parsed, without waiting for stylesheets, images, and subframes to finish loading Load event is fired when page finished loading or loaded completely. According to Parsing HTML documents – The end, The browser parses the HTML source and runs deferred scripts. A […]

Continue reading


JavaScript Implementation Guide of Adobe SiteCatalyst Omniture

This section describes the process of implementing Adobe SiteCatalyst Omniture Tracking. Before Implementation Before you implement the Visitor ID service, your company must be provisioned for the Marketing Cloud. You’ll receive a Marketing Cloud Organization ID that must be provided during Visitor ID service initialisation. See Getting Started with Adobe Marketing Cloud. Also, to successfully […]

Continue reading


JavaScript: Void Operator Explanation

The void is a operator that always returns undefined after evaluate a given expression The void operator allows inserting expressions that produce side effects into places where an expression that evaluates to undefined is desired. Syntax:

It is often used merely to obtain the undefined primitive value, usually using void(0) (which is equivalent to […]

Continue reading


JavaScript: Date Object Functionality

The built-in object for date and time in JavaScript is Date. It handles all functionality: creation, modification and, partially, date formatting. Constructors Getter methods Setter methods Auto-adjusting Numeric conversion, date diff Formatting Parsing from string, Date.parse 1. Constructors The syntaxes to create a Date are: 1. new Date(): Creates a Date object with current date […]

Continue reading


JavaScript Prototype Concept

JavaScript prototype concept is always a controversial topic. Here is the explanation that how does JavaScript .prototype work. This is a very simple prototype based object model that would be considered as a sample during the explanation, with no comment yet:

There are some crucial points that we have to consider before going through […]

Continue reading


JavaScript: Variables Type Conversion

Javascript Type-Conversion Introduction Converting to Boolean Converting to String Converting to Number Parsing to Number parseFloat parseInt parseInt with a radix argument ToInt32 Converting User Input Regular expression examples Introduction Javascript (ECMAScript) is a loosely typed language. That does not mean that it has no data types just that the value of a variable or […]

Continue reading