const links = document.getElementsByTagName("link");
for (const link of links) {
console.log("New link found.");
link.relList.forEach((relEntry) => {
console.log(relEntry);
});
}HTMLLinkElement: relList property / notebook
HTMLLinkElement: relList property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.