• 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 Page Details

Page Details

Get all URL parameters from a query string

Get all URL parameters from a query string

A technique you can use to get all query string parameters and push them into an object of key/value pairs.

Page Details

Get Width and Height of an Element

Get Width and Height of an Element

To get the width and height of an element, you use the offsetWidth and offsetHeight properties of the element.

Page Details

Get the Width and Height of the Window

Get the Width and Height of the Window

How to get the width and height of the window in px.

Page Details

Get and Set Scroll Position of an Element

Get and Set Scroll Position of an Element

To set or get the scroll position of an element, you use the properties scrollTop and scrollLeft of the element.

Page Details

Check if the browser tab of the page is focused

Check if the browser tab of the page is focused

Use the Document.hidden property, introduced by the Page Visibility API to check if the browser tab of the page is visible or hidden.

Page Details

Get the size of an image

Get the size of an image

These snippets will get the height and width of an image, one when it is loaded and another when the image is not loaded yet.

Page Details

Delayed Image Loader

Delayed Image Loader

Use this script to delay the loading of a particular image. It can be used to delay the loading of large images or banner advertisements. A smaller image is loaded first, which can be transparent or blank. After a designated amount of time the larger image will load in place of the smaller one.

Page Details

Copyright Notice

This unobtrusive script will update the current year for the copyright notice on a page. No need to worry about changing it from year to year. Very easy to implement.

Page Details

Hexadecimal Color Wheel

Hexadecimal Color Wheel

A dynamic color wheel displaying 4096 colors in a chromatic scale utilizing cross browser mouse event capture from a layer to display the hexadecimal codes of each color. Easily find that elusive color code you were looking for and learn how to manage layers and mouse events.

Page Details

Top Window

Top Window

Use this JavaScript to keep a window ‘on top’ of the rest of your other windows. Not sure what I mean? Try it out and see!

Page Details

  • « Go to Previous Page
  • 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