Hey guys,
I posted this answer yesterday. Basically I wanted to extract the URL from inside an IFRAME. We can’t put a script into the IFRAME because it’s not our site inside.
I received the following answer:
<html>
<head>
<title>untitled</title>
<meta http-equiv=”content-type” content=”text/html; charset=iso-8859-1″>
</head>
<body>
<iframe src=”foo.html”></iframe>
<a href=”#” onclick=”alert(frames[0].location);”>Get iframe location.</a>
</body>
</html>
This works like a charm, but only for a site on my own webserver ( [url]http://localhost…
Anyone know the answer to this nut, please respond.
Thanks
Suha