6311 3
How to open New tab using javascript or jquery and open href in it?

I would like to capture href of anchor tag<a> on click, and open that link in new tab using javascript or jquery, how to do this?

...
Type
Question
6288 0
Toggle Class (Javascript based, without jQuery)
In this article, I have provided working example on how to toggle class using pure Javascript and without using jQuery.
Type
Article
6272 0
Using Google Translate to translate language using HTML- Javascript.
In this article, I have provided step by step procedure to add google translate on a website to translate languages using HTML and Javascript.
Type
Article
6184 0
Read or Generate QR Code using Javascript
In this article, I will provide you sample JavaScript code to read or generate qr code, basically how to generate qr code using Javascript.
Type
Article
5924 3
How to generate random string using javascript?

Hi, I would like to generate the random string using javascript? How can I achieve it?

Any length of string would work but if possible I would like to have a random string of 6 characters.

...
Type
Question

5892 3
calculate distance between two locations in google maps
How do you calculate the distance between two locations(points or lat/lang) in Google Maps using javascript or jquery?
thank you
...
Type
Question
5846 3
not able to access iframe contents using jquery or javascript

I was trying to manipulate HTML inside iframe using jquery-javascript, I am trying something like this

...
Type
Question
5496 2
Console error "Syntax error Unexpected token 'export' popper.min.js"

I am using below scripts in my page and have included popper.min.js using CDN but getting an error, "Syntax error Unexpected token 'export' popper.min.js"

    <script src="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.5/js/select2.full.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.15.0/popper.min.js"></script>

Here is the error image, take a look

...

Type
Question
5431 0
Nested and Complex JSON examples
In this article, I have posted sample nested json example and complex JSON examples, by checking which you can create your JSON to send data on Server side.
Type
Article
5393 3
How to get query string values in JavaScript or jQuery?

I am working on a web-application and would like to know, how can I get query string value in javascript (possible using jquery, or with plain javascript), I don't want to increase page load time by adding an extra plugin, a demo code example would work.

thanks

...
Type
Question

Page 5 of 13