Posts from JavaScript

How to delay in loading JavaScript code?

By Faruque Ahamed Mollick

In this tutorial, we are going to see how to Delay in loading our JavaScript code on a web page. Suppose we want to delay our JavaScript code for few seconds. Here we are going to .... Read More

How to stop JavaScript setInterval() after a certain time period?

By Faruque Ahamed Mollick

We have already learned how to run our JavaScript code every n seconds periodically. Now in this tutorial, we are going to see how to stop the JavaScript setInterval() method from .... Read More

Run your JavaScript code every n seconds using setInterval() method

By Faruque Ahamed Mollick

In many times it is needed to run a JavaScript code periodically with a time interval. For example, in live online conversation or messaging system it needs to send AJAX request in.... Read More

Set a default image for broken or Unavailable image URL in JavaScript

By Faruque Ahamed Mollick

When the URL of an image on the web page is no more available then the images can’t be seen also on the web page and on many of the browsers, it shows some kind of marking th.... Read More

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

Related Posts