i'd like to know how a Javascript function can determine where it's being called from.
Can it figure out if it's being called from an iframe or another window?
Thank you so much.
Alejandro
i'd like to know how a Javascript function can determine where it's being called from.
Can it figure out if it's being called from an iframe or another window?
Thank you so much.
Alejandro
Calling a parent JS function from iframe is possible, but only when both the parent and the page loaded in the iframe are from same domain i.e. abc.com, and both are using same protocol i.e. both are either on http:// or https://
Read up more on CORS