You are here: Re: Dynamic Address Bar? « All PHP « IT news, forums, messages
Re: Dynamic Address Bar?

Posted by ... on 11/03/06 23:20

Semi-solution...

Other domains still cannot be read but...
JS checks and displays a proper message:

<script language="JavaScript" type="text/javascript">
<!--

function refreshURL()
{
setTimeout("refreshURL()",1000);
try
{
domain = window.testiframe.document.domain;
var url = window.testiframe.location.href;
document.urlform.url.value = url;
}
catch(e)
{
document.urlform.url.value="Cannot read URL";
}
}

-->
</script>


JS is called continuously and the url of the frame displayed in
textfield:

<body onload="refreshURL()">
<iframe name="testiframe" src="MYURL" align=right valign=bottom
width=100% height=500px frameborder="NO" border="1"></iframe>
<form name="urlform" action="NOTHING">
<input type="text" size="70" id="url" name="url" value="">
</form>

</body>

Is there really NO way to do this for

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация