I would like to get the url inside of my iframe and post it in the "title" above that iframe. So if google.com was in the iframe, and I clicked links inside google, the title above would change to whatever url was inside the frame.
Passing the variable through php I used:
This correctly passes the main url. But if I change to parent.bottom.location.href(bottom is my iframe name) it just gives me a blank for the variable. Any ideas?
Thanks!
Passing the variable through php I used:
Code:
<script language="JavaScript">
function setvariable()
{
test = parent.location.href;
document.write(test);
}
</script>
<?php
$x = "<script>setvariable()</script>";
?>
Thanks!