Posts from JavaScript

How to disable your website accessing from iframe using JavaScript?

By Faruque Ahamed Mollick

We use iframe tag to load any other link or website on our web page. In the same way, any other website can load your website or a page from your website on their web page using th.... Read More

How to get the current page URL in JavaScript?

By Faruque Ahamed Mollick

In several times it may be needed to get the current web page URL from the client side. So in this tutorial, We are going to see how to get the current page URL in JavaScript. Jav.... Read More

How to check if a JavaScript function exists or not?

By Faruque Ahamed Mollick

In many times we need to create functions in JavaScript. After we create a function it will not be used until we call it. But what happened if we call a function, but we forget to .... Read More

What is the opposite of JavaScript push() method that works reverse?

By Faruque Ahamed Mollick

We have already discussed the JavaScript push method in this post – Add or append a new item to an array in JavaScript using push() method. We have learned that the push() .... Read More

Add or append a new item to an array in JavaScript using push() method

By Faruque Ahamed Mollick

In this tutorial, we are going to learn how to append or add a new item to an array using the JavaScript push() method. We will learn with simple example code. JavaScript array pu.... Read More

Replace URL in HTML or text content with clickable link using JavaScript

By Faruque Ahamed Mollick

In this tutorial, we are going to see how to select the URL from text or HTML content or from a string from an element and make it clickable using JavaScript. We are going to use j.... Read More

Locate the Geo-position of a visitor in JavaScript

By Faruque Ahamed Mollick

In this post, we are going to see how to locate the position of a user who is visiting a web page using JavaScript. Today, almost all modern web browsers support the geolocation AP.... Read More

Show and hide password of input box in JavaScript

By Faruque Ahamed Mollick

If we create an HTML input field of type password then we can see that we are not able to see the password. We will see something like “********” instead of the passwor.... Read More