I want to get updated url of iframe using javascript?
Like this:
<iframe src="http://yahoo.com" id="ifrm" onload="iframeurl()" ></iframe> <script> function iframeurl() { var ifrm = document.getElementById("ifrm"); alert(ifrm.src); } </script> but the code above doesn't work. How can I do this? I'll use external links in iframe which is not hosted on same domain where I'm using the code above.
Please Help.
Thanks
thanks again. http://yahoo.com is just an example. Again my domain is szacpp.com and I need to get the links of other.com. You mean I need to put htaccess in other.com while I don't have access the domain.