Okay, but its a bit of a messy script. DO NOT BOTHER TRYING TO READ IT ALL! I just want to know if what I am trying to do is possible, and if so how! Frameset: <html> <head> <link rel="SHORTCUT ICON" href="favicon2.ICO"> <link rel="SHORTCUT ICON" href="favicon.gif"> <title>FewtraWeb from Fewtrem Europa</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <frameset cols="23%,*"> <frame name="viewer" noresize src="http://scd.hostiz.com/FewtraWeb/fewtraweb.php?a=http://www.google.com"> <frame name="site" noresize src="http://www.google.com" > </frameset> <noframes> <body bgcolor="#FFFFFF" text="#000000"> </body> </noframes> </html> Frame Viewer (SCRIPT) - where the problem comes from Following is called by clicking on get address function checkaddress(){ alert(addresshere + parent.frames.site.window.location); if (addresshere != parent.frames.site.window.location){ alert("match gone"); addresshere = parent.frames.site.window.location; document.browsing.adbar.value = parent.frames.site.window.location; document.comment.adbar2.value = parent.frames.site.window.location; } } Frame viewer(PHP) FULL VERSION <?php $firsterror = "Page has loaded. "; $reload = "go()"; $goagain = ""; if(!$b){ $b = ""; } $conn = @mysql_connect("localhost", "fewtrem", "hola") or die("Connection to MySQL failed"); $dbopen = "fewtrem_main"; $rs = @mysql_select_db( $dbopen ,$conn ) or die("Cannot open FewtraWeb database ".$dbopen." failed"); if($rip){ if($rip == "TRUE"){ $reload = "alert(parent.frames.site.window.location);"; $goagain = "checkaddress()"; } } if ($_POST['adbar']){ $a = $_POST['adbar']; } if($_POST['name2']){ $b = $_POST['name2']; } if ($add){ if($add == "TRUE"){ $a = $_POST['adbar2']; $b = $_POST['name']; $c = $_POST['text']; $d = "insert into fewtraweb ( address , name , comment ) values ( \"".$a."\" , \"".$b."\" , \"".$c."\" )"; $poland = @mysql_query($d, $conn); if ($poland == false){ $list .= "Failed to add comment<BR>"; } } } $sql = "select * from fewtraweb where address=\"".$a."\""; $rs2 = mysql_query( $sql,$conn); $u2 = 0; for ($i = 0; $i < mysql_num_rows ( $rs2 ); $i++){ while( $row = mysql_fetch_array( $rs2 )){ $u2 += 1; $list .= $row[$i+1]." <I></B>said</I><B> ".$row[$i+2]."<br>"; } } if ($list == ""){ $firsterror .= "No results for this page. "; } ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <link type="text/css" rel="stylesheet" href="defaultstyle.css"> SCRIPT (FULL): <script type="text/javascript"> <!-- var addresshere = "<?php echo($a) ?>"; function go(){ parent.frames.site.window.location = "<?php echo($a) ?>"; } function checkaddress(){ alert(addresshere + parent.frames.site.window.location); if (addresshere != parent.frames.site.window.location){ alert("match gone"); addresshere = parent.frames.site.window.location; document.browsing.adbar.value = parent.frames.site.window.location; document.comment.adbar2.value = parent.frames.site.window.location; } } var msg1 = parent.frames.site.window.location //--> </script> DOCUMENT: <title>FewtraWeb First Edition</title> <link rel="SHORTCUT ICON" href="favicon2.ICO"> <link rel="SHORTCUT ICON" href="favicon.gif"> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#204A79" text="#25E0AD" link="#92EFD6" vlink="#92EFD6" alink="#92EFD6" onload="<?php echo($goagain) ?>"> <script type ="text/javascript"> <?php echo($reload)?> </script> <p><font size="4" face="Arial, Helvetica, sans-serif"><b>FewtraWeb              <a href="<?php echo($a) ?>" target="_parent">close</a><br> </b><i>a connected web browser</i></font><font face="Arial, Helvetica, sans-serif" size="3"><br> </font> <form name="browsing" action="fewtraweb.php?b=<?php echo($b) ?>&" method="post"><font size="4" face="Arial, Helvetica, sans-serif">address:</font> <input type="text" class="textbox" name="adbar" size="35" value="<?php echo($a) ?>"> <input type="hidden" class="textbox" name="name2" size="35" value="<?php echo($b) ?>"> <br> <input type="submit" class="formbutton" name="Submit" value="go there now >"> </form><form name="riping" action="fewtraweb.php?b=<?php echo($b) ?>&rip=TRUE&" method="post"> <input type="hidden" class="textbox" name="name2" size="35" value="<?php echo($b) ?>"> <input type="submit" class="formbutton" name="Submit" value="< rip address"> </form> <p><font size="4" face="Arial, Helvetica, sans-serif"><b>FewtraWeb References<br> <?php echo($list) ?> </b></font><br> <br> <form name="comment" action="fewtraweb.php?b=<?php echo($b) ?>&add=TRUE&" method="post"> <input type="hidden" class="textbox" name="adbar2" size="35" value="<?php echo($a) ?>"> <font size="4" face="Arial, Helvetica, sans-serif">name:</font> <input type="text" class="textbox" name="name" size="35" value="<?php echo($b) ?>"> <br> <font size="4" face="Arial, Helvetica, sans-serif">comment:</font> <input type="text" class="textbox" name="text" size="35" value=""> <br> <input type="submit" class="formbutton" name="Submit" value="blog it >"> </form><br> <br> <font face="Arial, Helvetica, sans-serif" size="1">with thanks to the people at <a href="http://www.hostiz.com">Hostiz</a> for hosting this service</font> </body> <HEAD> <link type="text/css" rel="stylesheet" href="defaultstyle.css"> </HEAD> </html> Thanks