Javascript question

From: Vishwam Annam <vishwam.annam_at_nyob>
Date: Wed, 8 Jun 2005 14:40:42 -0400
To: CODE4LIB_at_listserv.nd.edu
Hello List,

I have a question about including html files in javascript. I created a
page at
http://www.libraries.wright.edu/services/copyright/fac_staff/primary.html?Faculty
where I am passing value via url as "?Faculty", and I wrote javascript
such as below:

<script type="text/javascript">
a=location.search.substring(1);
if(a=="Faculty")
{
document.write(' I want to include faculty.html file here');
}
else
if(a=="Students")
{
document.write('I want to include students.html file here');
}
</script>

Is there anyway I can do this with Javascript? I'd appreciate your
responses,

Thank you,

Vishwam
Received on Wed Jun 08 2005 - 13:45:03 EDT