html - How to open only some links in a iframe on the parent window -


i have iframe on page opens calendar application, in application, have links of app itself, while other links should open in parent window.

using: <base target="_parent" /> makes links opens in parent window, but kind of links target parent window, not all...

is possible have crossbrowser solution?

it seems don't need <base> tag. use the target attribute on links (<a>) want behave differently.

if still want use <base>, target 1 specified <base> links without target attribute.

for instance:

<base target="_self"></base> <a href="http://stackoverflow.com" target="_parent">open in parent window/tab</a> <br/> <a href="http://stackoverflow.com" >open in window/tab</a> 

jsfiddle


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -