Access IFrame's parent URL [duplicate]
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: access parent url from iframe I've been looking around but can't find a set answer or solution for this. I have 2 websites, www2.domain.net and www3.domain.net both these websites have an iFrame on them that links to www.domain.co.uk/iframe.html What I want to do is check the parent URL, i.e - is the user accessing www2.domain.net or www3.domain.net so I can show specific information to just people accessing