vijay khamitkar
Vj's Blog

Vj's Blog

Follow
homebadgesnewsletter

JavaScript utility for daily work - part 2

Mar 26, 20231 min read 65 views

Adding multiple CSS styles to HTML elements using JavaScript const addStyles = (el, styles) => Object.assign(el.style,...

JavaScript utility for daily work - part 2

Tips for CRO developers-accessing the swiper.js element

Mar 16, 20231 min read 63 views

Here is the trick to access the swiper.js element which is already present in the website and then modify it instead of creating new instance of...

Tips for CRO developers-accessing the swiper.js element

To pull data from the Data Layer using the GTM object command with Javascript

Mar 15, 20232 min read 31 views

Sometime, we need GTM object value to manipulate HTML DOM element as per DataLayer value loaded. Here is the trick to pull the data from the Data...

To pull data from the Data Layer using the GTM object command with Javascript

Error handling for Undefined and Undeclared in javascript

Mar 14, 20231 min read 26 views

Undefined: It occurs when a variable has been declared but has not been assigned any value. var technology; // not assign any...

Error handling for Undefined and Undeclared in javascript

Browser tab is active or inactive using javascript

Jan 25, 20232 min read 83 views

Objective - To check whether the current browser tab is active or inactive using javascript Using Page Visibility API: This will work only when user...

Browser tab is active or inactive using javascript

Prototype in JavaScript

Jan 14, 20231 min read 79 views

Objective- Understanding the prototype in JavaScript with the help of examples Prototypes are the mechanism by which JavaScript objects inherit...

Prototype in JavaScript