Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

url-fragment

Get fragment (value after hash ‘#’) from a URL [closed]

December 18, 2022 by Tarik

If you want to get the value after the hash mark or anchor as shown in a user’s browser: This isn’t possible with “standard” HTTP as this value is never sent to the server (hence it won’t be available in $_SERVER[“REQUEST_URI”] or similar predefined variables). You would need some sort of JavaScript magic on the … Read more

Categories url Tags anchor, url, url-fragment Leave a comment

Proper URL forming with a query string and an anchor hashtag

October 26, 2022 by Tarik

?var=var#hash Everything after # is client side. Also, look into URL rewriting to get rid of ugly ?var=var.

Categories php Tags php, standards, url, url-fragment, wordpress Leave a comment

How do I get the fragment identifier (value after hash #) from a URL?

October 8, 2022 by Tarik

No need for jQuery var type = window.location.hash.substr(1);

Categories javascript Tags javascript, jquery, url, url-fragment Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa