javascript - How to allow IFrame to load pages only from specified domain? -



javascript - How to allow IFrame to load pages only from specified domain? -

for example, i'm developer of foo.com website. on 1 of pages i've iframe page bar.com. want page in iframe load pages bar.com (by clicking links), restrict next links domains (clicking link in iframe ponts evil.com or whatever should display error message).

can somehow? may help of javascript?

javascript html security iframe

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

ubuntu - Bash Script to Check That Files Are Being Created -