I know how to get the page url, but how can I extract only the domain and domain?
It should return the same value with or without www, and it should also return the same value regardless of the file, with or without a slash, etc.
So, www.domain.com will return domain.com , and domain.com/index.php will return the same.
Is it possible?
If so, is there a way to do this without calling ExternalInterface.call('window.location.href.toString') ?
Thanks for the help!
source share