I wonder if this is possible. I was trying to access the referrer of the document inside an iframe but it always disregard the hash(#) value.
Root Page(index.html) - (http://example.com/test#hashvalue
)
Inside the Root Page, there is an iframe that gets the referrer. It has this piece of code
var referrer = document.referrer;
This returns http://example.com/test
without the hash value. Is there a way to get the full url(with hash) as a referrer.
Note: that I dont have access to Root page. If I do, I can use postMessage but I don't. The iframe was just embedded(Lets call it as a widget of the root page).