aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDima Koltovych <dima.koltovych@jet.dev>2021-10-04 20:14:48 +0300
committerGitHub <noreply@github.com>2021-10-04 13:14:48 -0400
commit8c36e204f463590ab86811d65f206053555f0e07 (patch)
treef8689e13ccf1011286b5b6f67f889ee8f4f33ba4
parent86dce87d9dbc65e0706a4ca1949af4fe5e4697aa (diff)
downloadtranslated-content-8c36e204f463590ab86811d65f206053555f0e07.tar.gz
translated-content-8c36e204f463590ab86811d65f206053555f0e07.tar.bz2
translated-content-8c36e204f463590ab86811d65f206053555f0e07.zip
(ru) Web/API/URL/hash: add translation (#2651)
* (ru) Web/API/URL/hash: add translation * (ru) Web/API/URL/hash: remove redundant empty line
-rw-r--r--files/ru/web/api/url/hash/index.md50
1 files changed, 50 insertions, 0 deletions
diff --git a/files/ru/web/api/url/hash/index.md b/files/ru/web/api/url/hash/index.md
new file mode 100644
index 0000000000..ccefa979bd
--- /dev/null
+++ b/files/ru/web/api/url/hash/index.md
@@ -0,0 +1,50 @@
+---
+title: URL.hash
+slug: Web/API/URL/hash
+tags:
+ - API
+ - URL API
+ - URL
+ - Property
+ - Reference
+translation_of: Web/API/URL/hash
+---
+{{ APIRef("URL API") }}
+
+Свойство **`hash`** интерфейса {{domxref("URL")}} — это строка типа {{domxref("USVString")}},
+содержащая символ `'#'`, после которого идет идентификатор фрагмента URL-адреса.
+
+Фрагмент не [кодируется](/en-US/docs/Glossary/percent-encoding). Если URL-адрес не имеет
+идентификатора фрагмента, то данное свойство содержит пустую строку — `""`.
+
+{{AvailableInWorkers}}
+
+## Синтаксис
+
+```js
+const string = url.hash
+url.hash = newHash
+```
+
+### Значение
+
+Строка типа {{domxref("USVString")}}.
+
+## Примеры
+
+```js
+const url = new URL('https://developer.mozilla.org/en-US/docs/Web/API/URL/href#Examples');
+console.log(url.hash); // Выведет: '#Examples'
+```
+
+## Спецификации
+
+{{Specifications}}
+
+## Поддержка браузерами
+
+{{Compat}}
+
+## Смотрите также
+
+- Интерфейс {{domxref("URL")}}, которому принадлежит это свойство.