Hello,

I am using the following code:

Code:
function test()
{
location.href = "home.htm" ;
}
I want to use a function to load a page (which above is working) but I want to have a class part of the URL.

I know I can use a link on the page like:
Code:
 
<a href="page.html" class="first">Link text</a>
But I want to include class="first" part of the javascript function.

Any ideas?