I think I may have misunderstood your question. If you want to change the top page and the iframe is on the new top page, you cannot load to it from the link, but you could load to it using a query processed on the new top page:
HTML Code:
<a href="/prova/index2.htm?I1=prova%2Fgiochi%2Fmagic.htm" target="_top">
Then on /prova/index2.htm in the body, after the iframe named I1, have it like:
Code:
<iframe name="I1" src="about:blank" width="300" height="300" scrolling="auto" frameborder="1"></iframe>
<script type="text/javascript">
function getQval(n, m) {
/* n=name, m=searchString(optional) */
if(!arguments[0]||typeof n!='string')
return null;
var r=new RegExp('[?&;]'+n+'=([^&;#]*)'), m=arguments[1]?m:location.search;
return (m=r.exec(m))? unescape(m[1]) : null;
}
if(getQval('I1'))
window.frames['I1'].location=getQval('I1')
</script>
Bookmarks