Javascript redirect user to another page

Javascript redirect user to another page

Today, We are going to learn How can We redirect a user from one page to another page using JAVASCRIPT. Sometimes, We need to redirect from one page to another using JAVASCRIPT. Once, the Ajax request is complete in many cases we need to redirect a ...

Javascript validate Youtube video URL

Javascript validate Youtube video URL

I am working on WordPress project on that I need to validate Youtube video URL before going to save it. I am using JAVASCRIPT to validate Youtube video URL. Let’s see how to validate Youtube video URL function validateYouTubeUrl( url ) { ...

WordPress inject Javascript to footer using action

WordPress inject Javascript to footer using action

Many times we need to Inject Javascript into the post detail page. When we want to track how many users visit the post detail page at that time we need to Inject Js code into the WordPress Post Single. I used Facebook Pixel and Google Tag Manager for ...

JAVASCRIPT get location from Zip code using Ziptastic

JAVASCRIPT get location from Zip code using Ziptastic

I am working on shopping cart project on Laravel. The client wants to pre-populate the location detail like City, Country, State etc… So let’s see How I can pre-populate and fetch location form Zipcode. We are using the¬†Ziptastic API for ...

jQuery select2 get selected value using jQuery.

jQuery select2 get selected value using jQuery.

jQuery select 2 is the most popular javascript framework for the select dropdown. jQuery select 2 provide beautiful functionality for searching value from the dropdown option. jQuery select 2 is the best solution for the dropdown because We can ...

Google Map API set marker to current user location

Google Map API set marker to current user location

How to get current user location using Google map API and set the google map marker to the current user location with Info window.¬† Yes, it is possible to get the current user location using Google map API. Let’s how we can get the current ...

Javascript validation to allow the only numeric value in the text field.

Javascript validation to allow the only numeric value in the text field.

How to set the validation to allow only numeric value in the HTML text field using JAVASCRIPT. We can set the validation using window keycode event on JAVASCRIPT. Like we want to allow the user only able to enter the numeric value in the text field ...

Google API – Requests to this API must be over SSL

Google API – Requests to this API must be over SSL

When we are using the Google API many times we are getting “Requests to this API must be over SSL” error like { "destination_addresses": [ ], "error_message": "Requests to this API must be over SSL.", "origin_addresses ...

How to remove duplicate value from the array using JAVASCRIPT?

How to remove duplicate value from the array using JAVASCRIPT?

Many time we get the array with contains the duplicate value. how we can find that duplicate value form array and remove it easily. Let’s see how we can remove duplicate value from JAVASCRIPT array. var names = new Array("Mike"," ...

Screen capture using JAVASCRIPT PhantomJs

Screen capture using JAVASCRIPT PhantomJs

How we can capture the screen of the website to specific¬†position and size using JAVASCRIPT. Let’s see we can capture screen and store it as an Image file using PhantomJs. First of all, Download PhantomJs form here. After, download PhantomJs ...