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 -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -