Look at this code:
<div>
<p onClick="parentNode.remove()">click me</p>
</div>
Is it accessing dom via js.
I saw similar example example somewhere and it worked.
- How is it possible without js or is it somehow javascript
- Will it work if js is disabled in browser.
- Where can I look for similar functions. mozilla's dom api docs were not very helpful for me as I could not even find that parentNode.remove() function.