My iframe is having a url with a hash value when i do iframe.src it just gives me the url without the hash appended to it from the other domain. Can i read the entire url with the hash.
My iframe is having a url with a hash value when i do iframe.src it just gives me the url without the hash appended to it from the other domain. Can i read the entire url with the hash.
Share Improve this question edited Apr 21, 2011 at 14:06 skaffman 404k96 gold badges824 silver badges775 bronze badges asked Apr 21, 2011 at 7:51 sushil bharwanisushil bharwani 30.2k30 gold badges97 silver badges130 bronze badges2 Answers
Reset to default 2Not likely due to security constraints - I am surprised you can even get the URL
Can you show the code?
Sounds like a duplicate of How to get iframe contentWindow height in cross domain
var contentWnd = $('iframe').attr('contentWindow');
var hash = contentWnd.window.location.hash;
Adaptation of this answer: Get url from iframe and update hash in browser url