The words Under construction in black text on a yellow background with diagonal black stipes surrounding it
I'm in the process of moving my site. It's still a work in progress. Please excuse the mess and broken links.

Access Parts Of The Current Page's URL With JavaScript

TODO: Pull subtitle into page object

Overview

Given this URL:

Code
https://www.example.com:8080/alfa/bravo?charlie=delta#echo

The follow is what's available

window.location.href

Code
https://www.example.com:8080/alfa/bravo?charlie=delta#echo

Debugging Stuff

I'm moving stuff around right now. All this below is helping me figure out where to put stuff

        -- title

Access Parts Of The Current Page's URL With JavaScript


-- h2

Overview

Given this URL:


-- code

https://www.example.com:8080/alfa/bravo?charlie=delta#echo


-- p

The follow is what's available


-- h3

window.location.href


-- code

https://www.example.com:8080/alfa/bravo?charlie=delta#echo



-- todo

[] Finished putting in all the examples from <<link|this page|https://developer.mozilla.org/en-US/docs/Web/API/Location#wikiArticle>>

[] Add in <<link|URLSearchParams|https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams>> as well


-- categories
-- JavaScript 
-- WebDev 

-- metadata
-- date: 2023-04-02 14:05:56
-- id: 2nsha3ju
-- site: aws
-- type: post
-- status: draft