<!DOCTYPE html>
<html lang="en-US">
<head>
<link rel="stylesheet" title="red" type="text/css" href="/red.css">
<link rel="stylesheet" title="green" type="text/css" href="/green.css">
</head>
<body>
<p>This example will work only on Firefox</p>
<p>Click on the following button to display the titles of all stylesheets used in this document.</p>
<button onclick="myFunction()">Click Me</button>
<p id="point"></p>
<script>
var x = document.getElementById("point");
document.enableStyleSheetsForSet("red");
var sheets = document.styleSheetSets;
var len = sheets.length;
var txt = "";
function myFunction(){
for(var i = 0 ;i<len;i++)
txt += sheets[i] + "<br>";
x.innerHTML = txt;
}
</script> </body>
</html>