Menu
Is it possible to use Javascript to detect which stylesheet is currently being used in a page?
… a script to detect the HREF value in the <link> tag which is located in the <HEAD> of the page.
IMPORTANT:
I need to place this javascript “detect” [B]after
EXAMPLE:
[CODE]
<html>
<head>
<link rel=”stylesheet” href=”main.css” type=”text/css”>
</head>
<body>
blah, blah….
<script> detectCurrentStylesheetBeingUsed() </script>
</body>
</html>
My guess is that this cannot be done … but I’d like to hear from others.
Thanks.