Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2018年4月.
previousElementSibling は CharacterData インターフェイスの読み取り専用プロパティで、親の子リストの中で、現在のノードの一つ前の Element を返します。存在しなければ null を返します。
Element オブジェクト、または兄弟ノードが見つらなければ null です。
| DOM # ref-for-dom-nondocumenttypechildnode-previouselementsibling② |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2023年4月22日 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.