I have to use one of my html page as an iframe in some other site (not in same domain. need to use it like a widget.) In my iframe url there are some parameters
ex: < iframe src="www.MyTestSite.com/Home.html?id=3" width="800" height="300">< /iframe>
The html page I'm using as the iframe (www.MyTestSite.com/Home.html?id=3) has a button and in that button click function i need to read that "id" parameters value. But if i use window.location.href for read it I'm unable to read that value since the iframe loaded in some other page (other domain ex: www.example.com/index.html)
Is there any way to get that iframe url query string value inside onlick function? My page only display as an iframe not as a whole page and in some different domain too.
(What i want is, to read that iframe url "id" parameter inside a button click function. iframe loads in some other domain page. So when ever i use window.location.href i dont get my iframe url. The button i mentioned about contained in y iframe page. when ever i click that button i need to read that "id" parameter)
Thanks in advance