hello, i never used ajax and now i need it :-P
i need monitor iframe on page. user open my page with some information and iframe. in this iframe user must register on other pages and i need to know iframe url to redirect iframe to other pages after complete registration. have anyone idea how do this? thanks and sorry for my english ;-)

This isn't possible because some browsers like Firefox reject requests for iframe URLs as a security measure. Some people could abuse it for XSS (cross-site scripting).

and exist any possible method or way how to check if user got to page which i want and which is not my?

I have tried this and it seems to work: index.html

<html>
<body>

<div>
Frame locations list:<br/>
<ul id="list">
</ul>
<br/>
</div>

<iframe src="frame.html"/>

</body>
</html>

frame.html

<html>
<body>

<script type="text/javascript">
function sendURL(url) {
	window.top.document.getElementById("list").innerHTML += "<li>" + document.location.href + "</li>";
}
</script>

<a href="http://www.example.com" onClick="sendURL()">Link</a>

</body>
</html>

Of course, this doesn't look very pretty, but it just shows that you can send information from the frame to parent.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.