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
|