Nav Bowman Nav Bowman - 7 months ago 29
CSS Question

Trying to find method to force this MDL button to go to the link in a new tab?

I'm using this MDL button:

<div class="mdl-card__actions mdl-card--border">
<a class=
"mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect mdl-button--accent"
href="">Stack Overflow</a>

When you click it, it will go to the link within the same tab in the web browser. I want the link to be forced to open a new tab. I understand you can do this using things such as angular.js, some other scripting language or calling the windows service on the page. I wanted to expand my knowledge and see if there were any simpler ways towards executing this.


<a href="" target="_blank">Stack Overflow</a>

target="_blank" will make a link open in a new tab.