I want to show the css of my page but when I try to do it in the traditional ways it does not show me anything, instead it gives me a message that it says is an HTML file
// EJECUTO
var link = document.querySelector(".link");
document.write(link);
// RESPUESTA
// [object HTMLLinkElement]
// SEGUNDO EJEMPLO
// document.write(link.innerText);
// RESPUESTA
// NINGUNA
<link href="#" type="text/css" rel="stylesheet" class="link">
To get the
css
dellink
, read the css pointed to by the attributehref
, perform afetch
del file and display it on your page. It would be: