Currently browsing JavaScript

JavaScript
Ciprian on Wednesday, August 28, 2019 — 268 Views

How to Populate OpenStreetMap with Foursquare Venues/Amenities

First of all, we need a Foursquare app and a client ID and secret. Head over to developer.foursquare.com and get your free account. Follow [...]

JavaScript
Ciprian on Wednesday, August 28, 2019 — 528 Views

WordPress Responseless XHR Request Using JavaScript

A responseless XHR (POST) request is a request which does not require any user feedback, such as storing post views or saving data in the [...]

JavaScript
Ciprian on Thursday, August 22, 2019 — 857 Views

How to track and measure phone number views with JavaScript

Use this tutorial to create phone number links and track/measure views. As phone numbers are clickable (and work) only on mobile devices, [...]

JavaScript
Ciprian on Thursday, August 22, 2019 — 4,501 Views

How to show an outdated browser alert on Internet Explorer 11

Here’s a nice overview on why Internet Explorer 11 should be phased out and users blocked from viewing the site content when using [...]

JavaScript
Ciprian on Thursday, August 22, 2019 — 750 Views

Native JavaScript hasClass()

These JavaScript snippets implement a native hasClass() function (inspired by jQuery and dubbed elementHasClass()), which checks if an [...]

JavaScript
Ciprian on Thursday, August 22, 2019 — 650 Views

How to extract a value from an element and, optionally, round it

This JavaScript snippet will extract a price from a DOM element, remove all alphanumeric characters, such as currency or symbols or other [...]

JavaScript
Ciprian on Thursday, August 22, 2019 — 1,075 Views

How to hide an element using JavaScript

Here are 3 methods to hide an element using JavaScript. How to hide an element using JavaScript? Set native display style to none Set CSS [...]

Node.js
Ciprian on Wednesday, August 21, 2019 — 212 Views

End of an Era: Travel SEO

I’ll just leave this here for reference purposes and I won’t explain any code, as it’s obsolete and I’m not using [...]

JavaScript Logo
Ciprian on Wednesday, July 17, 2019 — 253 Views

How to Create a Programmatic JavaScript Tooltip

Here’s a short tutorial on how to create a programmatic JavaScript tooltip. I needed this feature to recreate a product tour without [...]

YouTube Video Cover
Ciprian on Tuesday, July 9, 2019 — 983 Views

How to create a YouTube video cover using the YouTube Iframe API

There’s an increasing trend of adding full-width (possibly full-height) YouTube video covers with autoplay. Using the YouTube Iframe [...]

JavaScript Logo
Ciprian on Monday, July 8, 2019 — 469 Views

How to Get and Set URL Parameters with JavaScript

This is an old script, which helped a lot with the initial phase launching a project on all browsers and devices. How to use: Find more [...]

JavaScript Logo
Ciprian on Tuesday, October 16, 2018 — 2,193 Views

How to Build a Vanilla JavaScript Slider in Less Than 100 Lines

This quick tutorial will show you how to create a basic slider in less than 100 lines. The actual JavaScript is less than 30 [...]

Privacy Policy