Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

114 total results found

Connecting JavaScript and Selecting Elements

HTML, CSS and JavaScript Basics JavaScript Reference

JavaScript can add interaction to an HTML interface. Keep the page usable when supporting scripts fail. Connect a script Place this before the closing body tag: <script src="js/app.js"></script> Or use defer in the page head: <script src="js/app.js" defer></...

Handling Events and User Input

HTML, CSS and JavaScript Basics JavaScript Reference

Events allow a script to respond to user actions. <label for="team-filter">Filter teams</label> <input id="team-filter" type="search"> <p id="filter-status" role="status"></p> const filter = document.querySelector("#team-filter"); const status = document.query...

Filtering and Sorting Displayed Data

HTML, CSS and JavaScript Basics JavaScript Reference

Client-side filtering can help users explore data already present in the browser. Database filtering remains preferable for large or permission-sensitive datasets. const rows = [...document.querySelectorAll("[data-team-row]")]; const search = document.querySel...

Updating Interfaces Accessibly

HTML, CSS and JavaScript Basics JavaScript Reference

Dynamic interfaces must communicate changes without removing keyboard access or context. Status message <p id="save-status" role="status" aria-live="polite"></p> const status = document.querySelector("#save-status"); status.textContent = "Changes saved."; Use ...

Presenting PHP Data with JavaScript Charts

HTML, CSS and JavaScript Basics JavaScript Reference

PHP can query and process database data, then pass a small prepared result to JavaScript for presentation. <?php $labels = array_column($rows, "team_name"); $points = array_map("intval", array_column($rows, "points")); ?> <script> const labels = <?= json_encod...

GameMaker LTS 2026

Hosted Files