I have the code below where I want to be able to load a page into an iframe by passing its name and url, but I can't quite figure out how to reference the iframe once the name has been passed to the function???
<script language=javascript>
function loadFrame(framename,url)
{
window.framename.location.href=url
}
</script>
<iFRAME name=listsiteVisits frameborder=0 scrolling=yes marginheight=0 marginwidth=1 width=100% height=100></iFRAME>
<a href=# onclick="loadFrame('listsiteVisits','test.asp')">load</a>
Cheers
Tim
<script language=javascript>
function loadFrame(framename,url)
{
window.framename.location.href=url
}
</script>
<iFRAME name=listsiteVisits frameborder=0 scrolling=yes marginheight=0 marginwidth=1 width=100% height=100></iFRAME>
<a href=# onclick="loadFrame('listsiteVisits','test.asp')">load</a>
Cheers
Tim