browser - How do #hashes work in URL schemes if they're not part of URL request? -


i'm trying figure out how browsers handle hashes in url requests , page rendering.

for example, let's go www.example.com/#footer.

when request url browser makes get request www.example.com doesn't have #footer in request.

when page loads, browser knows asked #footer , jumps location.

what happens in more complex situations when redirect? example, let's 301 redirect www.example.com/birds/#middle. how browser know can jump #middle if hash not part of request url?

also how web server know i'm jump particular anchor #hash can serve content #hash? (like facebook when go 1 section another. #hash anchor tag changes.)

they called anchors here definition , examples. once page loaded browser looking "anchor" , moves page there if finds it.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -