URL Masking
means that the visitors to the domain name will be forwarded to your destination website, however the URL in their browser address bar will remain the same. Also known as Stealth Redirection or URL Hiding, this will ensure that your visitors see the original domain name and not the destination URL.
Check the returned html and see whether it contains an iframe. There are many ways to hide the URL and in many cases the client will never see the "real" URL.
Yes, accessing parent page's URL is not allowed if the iframe and the main page are not in the same (sub)domain. However, if you just need the URL of the main page (i.e. the browser URL), you can try this:
B4X:
var url =(window.location != window.parent.location)? document.referrer
: document.location.href;
I was struggling with the same issue and got this solution from an other source. Worked for me.
1. Enter URL to Main Page
2. Navigate to other Pages on Same Website
3. New Page loads BUT URL does NOT CHANGE - Masked
4. Need the REAL URL of this New Page on Same Website