MDanz Posted January 11, 2010 Share Posted January 11, 2010 is it possible. Having an external website in a frame and getting the url of it from your frame. curl? i just want the url the top frame. is this possible at all? Link to comment https://forums.phpfreaks.com/topic/188081-get-the-url-of-an-external-website-in-frame/ Share on other sites More sharing options...
mattal999 Posted January 11, 2010 Share Posted January 11, 2010 You would need JavaScript. Here's an example: <script language="text/javascript"> function getFrameURL(id) { return document.getElementById(id).location.href; } window.onload = function() { alert(getFrameUrl("example")); } </script> <iframe src="blah.html" id="example"></iframe> This code is untested, just so you know. Link to comment https://forums.phpfreaks.com/topic/188081-get-the-url-of-an-external-website-in-frame/#findComment-992987 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.