/    Sign up×
Community /Pin to ProfileBookmark

Iframe & Security

Hey.
I put an iframe in my site that calls to an external url.
i need to get the current url to avoid 404 in the external site.
and i want to watch the iframe url to avoid un wanted content.

now contentWindow will not work in FF, any suggestions how to monitor the url?
thnaks

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@FangFeb 22.2009 — You can't. It's not on your server.

You will have to look into server side scraping.
Copy linkTweet thisAlerts:
@A1ien51Feb 22.2009 — [B]The reason why you can't:[/B]

JavaScript has a same domain policy. It is protect you from people snooping on your bank accounts, email, etc.

Eric
Copy linkTweet thisAlerts:
@rnd_meFeb 22.2009 — you can set the url, but you cannot check it.
×

Success!

Help @fatNjazzy spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.1,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...