2n193r
09-18-2004, 04:06 AM
I’m new to JavaScript and I wrote this a few months ago. It was meant to change the src of 2 iframes. But the problem is that when I click back it would only change one, then if I hit back again it then would go back again. I wanted to click back and both of them to go back. What should it do?
This is in the header:
<script language="javascript" type="text/javascript">
function changeIt(newpage)
{
return "content.php?id=" + newpage;
}
function changeItb(newpageb)
{
return "title.php?id=" + newpageb;
}
</script>
This is a link:
<a href="#" onClick="frames['bodyframe'].location.href = changeIt(1);frames['titleframe'].location.href = changeItb(1);">page1</a>
if at all possible can u give me an example plzzzz
-thx your time
This is in the header:
<script language="javascript" type="text/javascript">
function changeIt(newpage)
{
return "content.php?id=" + newpage;
}
function changeItb(newpageb)
{
return "title.php?id=" + newpageb;
}
</script>
This is a link:
<a href="#" onClick="frames['bodyframe'].location.href = changeIt(1);frames['titleframe'].location.href = changeItb(1);">page1</a>
if at all possible can u give me an example plzzzz
-thx your time