A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://developer.mozilla.org/ko/docs/Web/API/URL/hash below:

URL.hash - Web API | MDN

URL.hash

Baseline Widely available

URL 인터페이스의 hash 속성은 맨 앞의 '#'과 함께 URL의 프래그먼트 식별자를 담고 있는 USVString입니다.

프래그먼트에는 퍼센트 디코딩을 적용하지 않습니다. URL이 프래그먼트 식별자를 포함하지 않은 경우 빈 문자열을 반환합니다.

참고 : 이 기능은 Web Worker에서 사용할 수 있습니다.

구문
const string = url.hash;
url.hash = newHash;
값

USVString.

예제
const url = new URL(
  "https://developer.mozilla.org/ko/docs/Web/API/URL/href#예제",
);
console.log(url.hash); // Logs: '#예제'
명세 브라우저 호환성 같이 보기

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4