| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/ja/docs/Web/API/Location/protocol | [Back] [Original] |
Get to know MDN better
// <a id="myAnchor" href="/ja/docs/Location.search?q=123">
const anchor = document.getElementById("myAnchor");
const result = anchor.protocol; // Returns:'https:'
| HTML # dom-location-protocol-dev |
| Web Proxy Viewer | New URL | Original Page |