HTML要素の中身を変更するのに活躍するプロパティです。HTML要素とは、一般的にはHTML文書に含まれているタグ名の事を指します。 HTML要素の中身を自由自在に変更できることによって、動的なWebページを作成することが可能です。 もっとJavaScriptを学びたい人 ...
The Web Developer Bootcamp 2022の246にて。 textContent gets the content of all elements, including <script>and <style>elements. In contrast, innerText only shows "human-readable" elements. textContent ...
innerHTML The innerHTML property is a part of the JavaScript HTMLElement object and it allows developers to access and manipulate the HTML content of an element. The innerHTML property returns the ...
JavaScriptによるブラウザ上での処理量およびコード量の増加に伴い、 JavaScript上のバグが原因で発生する脆弱性も増加しています。そのような脆弱性の最も代表的なものが、 DOM-based XSSです。今回から数回に分けて、 DOM-based XSSについて説明していきます。