html - Open link in window that contains iframe where link is initiated -


i have iframe contains webpage built. have link in frame, , when click on link opens link within iframe. how make link opens in main window?

if want links in iframe open parent frame, add following tag head of html document:

<base target="_parent"> 

(see documentation base tag.)

otherwise, add target="_parent" attribute link want opened in parent frame. (see documentation target attribute of a tag.)

in either case, if there no parent frame/context, _parent behaves _self.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

What is the difference between data design and data model(ERD) -

ios - Can NSManagedObject conform to NSCoding -