Skip to main content

Useful Browser APIs: History, URL, Clipboard, Geolocation, Intl

Learn Useful Browser APIs: History, URL, Clipboard, Geolocation, Intl (Phase 12 · Browser APIs and Web Storage (Important), JavaScript) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Navigation and URLs • new URL(href) parses a URL into searchParams , pathname , hash . Read the current page with location . • The History API ( history.pushState , popstate ) changes the address bar without a reload: the foundation of single-page-app routers. • location.assign() navigates; location.replace() navigates without adding a history entry.

More lessons in Phase 12 · Browser APIs and Web Storage (Important)