- Jan 28, 2005
- 144
- 0
- 0
So i want to replace the html within one of my CSS box elements using javascript, heres what im using now...
<script type="text/javascript">
function changeSrc()
{
document.getElementById("mid").innerHTML="stuff"
}
</script>
I have it working where it replaces the html in the box with the text stuff. But what i want to happen is for it to take the content of replace.htm (a seperate html file) and replace the html with that. So, how do i do that?
<script type="text/javascript">
function changeSrc()
{
document.getElementById("mid").innerHTML="stuff"
}
</script>
I have it working where it replaces the html in the box with the text stuff. But what i want to happen is for it to take the content of replace.htm (a seperate html file) and replace the html with that. So, how do i do that?