Friends, I would like to get the value of or just know if it exists, does anyone have an idea?
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<link rel="stylesheet" type="text/css" href="stacks.css?v=f956aeec157c" >
<link rel="stylesheet" type="text/css" href="primary.css?v=f68ca0e24c3b" >
</head>
<body>
<link extension-installed="0318648714777">
<p>Click the button to find out how many <link> elements.</p>
<button onclick="myFunction()">Try it</button>
<p id="demo"></p>
<script>
function myFunction() {
var x = document.getElementsByTagName("link");
document.getElementById("demo").innerHTML = x.length;
}
</script>
</pre>
unfortunately it counts all page