I see on some website (like StackOverflow, yahoo, the US Homeland Security department, …) a word associated to a link that, when clicked, not only loads a page, but also, displays that page at the exact location where the contain related to the word starts.
How can I obtain that with ASP.NET MVC? (by the way, do I need javascript for that?)
Thanks for helping
Also the URL can have
/yourpage.html#jumpHereor with variables,/yourpage.html?var1=foo&var2=bar#jumpHere.Since we’re talking about the hash (#), it’s usually used for jumping to a specific part of the page. Because of that, it won’t reload the whole page. This is useful for web applications that move from one view to another using only AJAX. To make each view bookmarkable, JavaScript “saves” the state (what view you are on) using
location.hashto the URL. The next time you open the URL, JavaScript reads it and loads the correct view. In HTML5 this is superseded bypushState.