• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
JavaScriptSource

JavaScriptSource

Search 5,000+ Free JavaScript Snippets

  • Home
  • Browse Snippets
    • Addon
    • Ajax
    • Buttons
    • Cookies
    • CSS
    • Featured
    • Forms
    • Games
    • Generators
    • Image Effects
    • Math Related
    • Miscellaneous
    • Multimedia
    • Navigation
    • Page Details
    • Passwords
    • Text Effects
    • Time & Date
    • User Details
Home / Archives for Basics

Basics

How To Convert a String to Boolean in JavaScript

How To Convert a String to Boolean in JavaScript

JavaScript has several ways to convert a string to a boolean.

Basics, Miscellaneous

How To Clone An Object In JavaScript

How To Clone An Object In JavaScript

JavaScript provides several ways to clone an object, each with its own set of advantages and limitations.

Basics, Miscellaneous

How To Loop Through All The Entries In An Array Using JavaScript

How To Loop Through All The Entries In An Array Using JavaScript

In this article, we will explore the most common methods for iterating over an array in JavaScript.

Basics, Miscellaneous

The Difference Between “var” and “let” in JavaScript

The Difference Between "var" and "let" in JavaScript

JavaScript has two ways to declare variables: “var” and “let”. Although they both serve the same purpose, there are some key differences between the two.

Basics

How To Automatically Redirect To Another URL (JavaScript and jQuery)

How To Automatically Redirect To Another URL (JavaScript and jQuery)

In this article, we will explain how to redirect to another URL using both JavaScript and jQuery, with code examples for each method.

Basics, Miscellaneous

What JavaScript Closures Are and How They Work

What JavaScript Closures Are and How They Work

JavaScript closures are a fundamental concept in the JavaScript programming language.

Basics, Miscellaneous

How To Delete a Specific Element From an Array in JavaScript

How To Delete a Specific Element From an Array in JavaScript

In JavaScript, there are several ways to remove a specific element from an array

Basics, Miscellaneous

The onclick Event in JavaScript

The onclick Event in JavaScript

This event can be used to perform various actions, such as submitting a form, navigating to a new page, or displaying a message.

Basics

The onblur Event in JavaScript

The onblur Event in JavaScript

The JavaScript onblur event is triggered when an element loses focus, such as when a user clicks outside of an input field or tabs away from a text area.

Basics

The onabort Event in JavaScript

The onabort Event in JavaScript

The JavaScript onabort event is triggered when a user aborts an action, such as when they stop loading an image or cancel a form submission. This event can be used to handle such scenarios and provide feedback to the user.

Basics

  • Go to page 1
  • Go to page 2
  • Go to page 3
  • Go to Next Page »

Primary Sidebar

Popular Posts

Story Generator

IP Grabber – get a users IP address with JavaScript

Simple Calendar

Remove Ads

Astrological Calculator

Copyright © 2025 JavaScriptSource.com

  • About
  • Privacy Policy
  • FAQ
  • Jobs For Developers