• 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 Miscellaneous

Miscellaneous

Remove Duplicates From an Array

Remove Duplicates From an Array

In JavaScript, Set is a collection that lets you store only unique values. This means any duplicated values are removed.

Miscellaneous

How to loop through arrays and array-like objects in JavaScript

Loop through arrays and array-like objects

Here is how to loop through arrays and array-like objects using JavaScript.

Miscellaneous

How to Get the Query String in JavaScript

How to Get the Query String in JavaScript

When you’re working with JavaScript, sometimes you need to access query string parameters in your script.

Miscellaneous

Check if an Object Is Empty

Check if an Object Is Empty

ere are some different methods that you could use to check if an object is empty in modern browsers that support the ES5 edition of JavaScript.

Miscellaneous

Strip HTML from a given text

Strip HTML from a given text

Here are 2 ways to strip HTML code from a given text.

Miscellaneous

Remove a Character From a String in JavaScript

Remove a Character From a String in JavaScript

How can you remove a character from a string in JavaScript? Here are a few different ways to do this.

Miscellaneous

Show or hide an element

Show or hide an element

Quick tip on how to show or hide an element with JavaScript

Miscellaneous

Return the last element in an array

Return the last element in an array

Use Array.prototype.length – 1 to compute the index of the last element of the given array and return it, otherwise return undefined.

Miscellaneous

Copy text to the clipboard

Copy text to the clipboard

Assume that we want to copy a given text to the clipboard. Here’s how.

Miscellaneous

Confirm Yes or No With JavaScript

Confirm Yes or No With JavaScript

How to display a confirm dialog box using JavaScript. The confirm dialog box allows you to perform actions based on the user input.

Miscellaneous

  • « Go to Previous Page
  • Go to page 1
  • Interim pages omitted …
  • Go to page 6
  • Go to page 7
  • Go to page 8
  • Go to page 9
  • Go to page 10
  • Go to page 11
  • Go to Next Page »

Primary Sidebar

FREE UPDATES!

Get the latest updates in your inbox for FREE!

Popular Posts

Story Generator

IP Grabber

Simple Calendar

Remove Ads

Astrological Calculator

Copyright © 2022 JavaScriptSource.com

  • About
  • Privacy Policy
  • Submit
  • FAQ
  • Jobs For Developers
  • Contact Us