This page was translated from English by the community. Learn more and join the MDN Web Docs community.
HTMLHyperlinkElementUtils.search
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since июль 2015 г..
Свойство HTMLHyperlinkElementUtils.search – это String, содержащий '?' с последующими параметрами URL.
Синтаксис
string = object.search; object.search = string;
Примеры
js
// Допустим, что документ содержит элемент <a id="myAnchor" href="https://developer.mozilla.org/ru/docs/HTMLHyperlinkElementUtils.search?q=123">
var anchor = document.getElementById("myAnchor");
var result = anchor.search; // Вернёт: '?q=123'
Спецификации
| Specification |
|---|
| HTML> # dom-hyperlink-search-dev> |
Совместимость с браузерами
Enable JavaScript to view this browser compatibility table.
Смотрите также
- Миксин
HTMLHyperlinkElementUtils, к которому принадлежит это свойство.