Hi All,
Is it possible to use includes dynamically in html.
Hopefully the following example will give an idea what I am rying to do.
Thanks in advance
Adam
<script language="javas cript">
function checkFileToIncl ude(){
if (location.searc h == "?file1"){
return "<!--#include file='file1.htm l'-->"
}else{
return "<!--#include file='file2.htm l'-->"
}
}
</script>
<html>
..
..
<a href="www.mydom ain.com/test?file1">Inc lude File 1</a>
<a href="www.mydom ain.com/test?file2">Inc lude File 2</a>
..
..
<td>
document.write( checkFileToIncl ude())
</td>
..
..
..
</html>