Author Archives: Moazzam Qureshi

I am SEO expert and web developer since 2011. My hobby is to write & provides quality content about blogging, SEO , Social Media , Earn Online and Affiliate Marketing.

Which is the best way to use value for loading JavaScript link “#” or javascript:void(0)”?

javascript solutions

Going to discuss which href value is best for load JavaScript function “#” or  javascript:void(0)”?. Here there are two methods available which you can use when user click on the link the JavaScript function execute. 1. Load JavaScript function by using “#” in href value. <a href=”#” onclick=”yourJsFnc();”>Execute JavaScript Code</a> 2. Load JavaScript function by using “javascript:void(0)” in href value. ...

Read More »

How you can include a JavaScript file to another JavaScript

javascript solutions

Many programmers have queries that how they can include a JavaScript file to another JavaScript, Is there any way to achieve ? The answers is JavaScript does not support methods include, import, required like other programming languages supports. But there are some other ways available in JavaScript to import/include JavaScript file in another JavaScript file. 1. Loading JavaScript file using ...

Read More »

How to Removed a Element from an Array in JavaScript ?

javascript solutions

Today i am going to discuss how to removed a particular element from the Array in JavaScript. For doing this you need to find the index of specific element which you want to remove from the array, after finding the index you can easily delete that element from the array. JavaScript provides two predefined function splice & indexof by using ...

Read More »

Where we Use === in JavaScript – What is difference between == operator and === operator in JavaScript

javascript solutions

Here is another interested JavaScript tutorial for programmers and beginners, I describe where you can use === comparison operator and == comparison operator. And what is difference between these operators. The comparison === operator compare the two values, if it is equal or not as well its data type and it return True if vale is equal and same data ...

Read More »

Differentiate declaration syntax: function fn() {} vs var fn = function() {} in JavaScript

javascript solutions

In the post i discuss why programmers use of function fn() {} and var fn = function() {} in JavaScript?  What is difference between these two functions and pros & cons of using the functions. The problem you face when you reuse or optimize the code of another developer, you get confuse why he used function fn() {} in one ...

Read More »

How to Check a Element is Hidden or Not in jQuery

javascript solutions

Various jQuery programmers search on the Google that it is possible to check if an element is hidden in jQuery/JavaScript. There are two predefined functions are available in jQuery by using it you can easily check the element is hidden or not in jQuery. Here is a simple code to do that. Use hidden selector to check hidden elements in ...

Read More »

Why people “use strict” in JavaScript Code and What is main Reason behind it?

javascript solutions

Many programmers and developers have problem whenever they run a JavaScript code, normally the error is: Problem at line 22 character 1: Missing “use strict” statement. This is because some programmers do not use “use strict” in the code which causes the error. you can also add “use strict” if you face the same problem while running the code. Why ...

Read More »