LearnFast.Ninja

JavaScript get parent url from iframe

How can I get url from iframe in JavaScript? Answer: Use the top location property.

Question: How can i get url from iframe in JavaScript? 
 
Answer: 

top.location.href



Tags

javascript

url location iframe