Hello all of you, Thanks for all good advice I have got here in the past. I have a personal homepage. I am also writing some introductory texts about Ubuntu-GNU-Linux in Swedish. I keep both these groups of pages at a web host. I wish to hide the domain-name for the personal homepage from the visitors to the Ubuntu pages. I have therefore pointed another domain to a directory within my homepage and use "redirection in frames" for this domain. Of course I cannot hide the domain-name for the personal homepage completely. If someone hits "view source" they will se the frame and the contained page within. However, this level of hiding is sufficient for me. I just do not want to show the domain-name for my personal homepage in the URL-window of the browser to visitors to the Ubuntu-pages. It works OK. (I must remember to set target=_parent for links leaving the Ubuntu site) However, I cannot find the referring page when I use framed redirection. I thought I would get it by: <script> alert(parent.document.referrer); </script> Code (markup): (This is just a test, Later I want to put the result in mysql with php.) But it doesn't work. (I get nothing in FF and "access denied" in IE). Please tell me how to find the referring page when an address/domain using framed redirection is used.
Bump Redirection in a frame was more complicated than I thought. It seems the parent frame is not accessible for security reasons if it is in another domain. As I understand I can never find the referrer of the parent. (And if i found it I would have to use AJAX to send it to mySQL.) However, the logs started indicating Google as the referrer. It proved that Google is not giving the top frame (as I do in all links) but the child frame that I am trying to hide a little). I then started to do this: if(window.location.href == my_personal_domain) {window.location.href = my_anonymous_domain;} Code (markup): It seems to have its effect most quickly if placed at the beginning of the body of the page. I am really just trying without any experience. Suggestions appreciated. The goal is: 1. Hiding the real domainname and showing the domainname of the referring domain 2. obtaining the referrer of the page I think this kind of hiding is OK. I just think my personal domain is not of interest to Ubuntu-users.