Skip to content
  • Blog (1)
  • About Us
  • Tags
  • Donations
1SMARTchicken - Code Made Easy
  • Tutorials (168)
  • Reference (2172)
  • Snippets (69)

Category: JavaScript Snippets

1SMARTchicken - Code Made Easy

Category: JavaScript Snippets

  • Tutorials (168)
  • Reference (2172)
  • Snippets (69)
  • Blog (1)
  • About Us
  • Tags
  • Donations
1SMARTchicken - Code Made Easy
  • Tutorials (168)
  • Reference (2172)
  • Snippets (69)
1SMARTchicken - Code Made Easy

Category: JavaScript Snippets

  • Tutorials (168)
  • Reference (2172)
  • Snippets (69)
  • Home
  • Snippets
  • JavaScript Snippets
JavaScript Snippets

JavaScript – Count Down to a Specified Daily Time

July 26, 2024 / JavaScript Snippets, Snippets / Date

The JavaScript Date object can be used to count down to a specified daily time. For instance, this can be used for a “daily deals” timer.

JavaScript Snippets

JavaScript – Count Down to a Specified Date and Time

July 26, 2024 / JavaScript Snippets, Snippets / Date

The JavaScript Date object can be used to count down to a specified date and time. For instance, this can be used as a prompt for the user to take action.

JavaScript Snippets

JavaScript – Get the Current Screen Size of a Page

July 26, 2024 / JavaScript Snippets, Snippets

The window.innerWidth and window.innerHeight properties can be used to get the current screen size of a page, NOT including its toolbars and scrollbars.

JavaScript Snippets

JavaScript – Write the Current URL to the Page

July 26, 2024 / JavaScript Snippets, Snippets

JavaScript can be used to return the current page URL to write to the page.

JavaScript Snippets

JavaScript – Write Today’s Date to the Page

July 26, 2024 / JavaScript Snippets, Snippets / Date

JavaScript can be used to write the current date to a page, or to write the year to the page, for instance, in the copyright section of your site.

or View All Tags

Tutorials

  • HTML Tutorials (40)
  • CSS Tutorials (45)
  • CSS Flexbox (12)
  • JavaScript Tutorials (6)
  • jQuery Tutorials (13)
  • PHP Tutorials (0)
  • SQL Tutorials (0)
  • Python Tutorials (64)
  • WordPress Tutorials (0)

Reference

  • HTML Reference (244)
    • HTML Tags (107)
    • HTML Attributes (46)
    • HTML Events (76)
    • HTML Resources (15)
  • CSS Reference (309)
    • CSS Selectors (55)
    • CSS Properties (220)
    • CSS Functions (17)
    • CSS Resources (17)
  • JavaScript Reference (555)
    • JavaScript Selectors (7)
    • JavaScript Operators (12)
    • JavaScript Statements (17)
    • JavaScript Methods (284)
    • JavaScript Properties (162)
    • JavaScript RegExp (45)
    • JavaScript Resources (28)
  • jQuery Reference (220)
    • jQuery Selectors (54)
    • jQuery Methods (140)
    • jQuery Ajax Methods (16)
    • jQuery Properties (17)
    • jQuery Resources (9)
  • PHP Reference (460)
    • PHP Keywords (59)
    • PHP Functions (400)
    • PHP Constants (0)
    • PHP Resources (1)
  • SQL Reference (290)
    • SQL Keywords (59)
    • MySQL Functions (138)
    • SQL Server Functions (83)
    • SQL Resources (10)
  • Python Reference (94)
    • Python Methods (86)
    • Python Resources (8)
  • WordPress Reference (0)

Snippets

  • HTML Snippets (3)
  • CSS Snippets (12)
  • JavaScript Snippets (5)
  • jQuery Snippets (8)
  • PHP Snippets (1)
  • SQL Snippets (3)
  • Python Snippets (1)
  • WordPress Snippets (36)
1SMARTchicken - Code Made Easy

333 Washington Blvd.
Suite 126
Marina del Rey, CA 90292
United States

contact2025@1smartchicken.com

  • About Us
  • Privacy Policy
  • Cookie Policy
  • Terms & Conditions

Search for Code:

or View All Tags

Copyright © 2025 1SMARTchicken | All Rights Reserved.