Forum Moderators: open
Here's a real basic example of what I'm trying to do:
<script type="text/javascript">
if (parent.frames.mainframe.src = 'FOO.html')
{
document.write('It is foo!');
}
else
{
document.write('Not foo Yo!');
}
</script>
It always returns the top statement. No matter what the actual src is.
You can reference the current URL of the child frame by going right down to the child's document object, like this:
parent.frames.mainframe.document.location.href
(fingers crossed that I got the referencing right!)