Possible to show an iframe's current location (current URL)
Let's say if I do an iframe... is it possible to show the current
location (current URL) of that iframe on the parent page if it has
navigated outside of my domain? (that is... if i iframe and set the
src to www.mywebsite.com, it seems that i can show the current URL of
that iframe as long as the user is navigating within mywebsite.com.
Once the user navigate outside of it, then i cannot show the iframe's
current location using
or document.getElementById("an_iframe").contentWindow .location.href
hm... that's a bit strange, because it is just a URL.... and if i
navigate in the main browser window, the URL is always visible in the
browser's address bar, so why is there any security issue about it?)
Re: Possible to show an iframe's current location (current URL)
> Once the user navigate outside of it, then i cannot show the iframe's
> current location using
> document.getElementById("an_iframe").contentWindow .location
WFM in Firefox 126.96.36.199.
> or document.getElementById("an_iframe").contentWindow .location.href
That is not supposed to work in your situation because the `href' property
therefore it is subject to the Same Origin Policy.
Use any version of Microsoft Frontpage to create your site.
(This won't prevent people from viewing your source, but no one
will want to steal it.)
-- from <http://www.vortex-webdesign.com/help/hidesource.htm>
|All times are GMT. The time now is 08:23 PM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.