Im using the following:
url=location.href fname=url.match(/.*\/(.*)\./)[1] document.body.className=fname
This takes a portion of the URL and adds the class to the <body> with the text extracted from the URL.
However, the problem with this method is that the class only gets the application that no longer has the assigned class.
Im really looking for something similar to the JQUERY .addClass function, so the body becomes:
<body class="originalClass filenameClass"> ... </body>
source share