php - Target blank opens link in the same tab when inside a modal -


i'm using bootstrap modal show text user. modal has button go "printable version" of content. want link open in new window, i'm using target="_blank" attribute.

the problem link opens in same tab. acts _self target.

i'm using zend framework.

the code a tag is:

$this->view->actions = array(array(             'tag' => 'a'             , 'label' => 'versão para impressão'             , 'attrs' => array(                 'href' => base_url. '/corporativo/index/termos?layout=print',                  'class' => 'btn btn-primary btn-print',                  'target' => '_blank'             )         )); 

it generates following html code:

<a href="http://localhost/corporativo/index/termos?layout=print" class="btn btn-primary btn-print" target="_blank">versão para impressão</a> 

anyone knows why happening , solution problem?

thanks!

it's must problem settings in browser. html code working , link opening in new window correctly.


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

order - Notification for user in user account opencart -