Person is as follows ... I am in a project of a website, where the same is responsive. On this site, there is an area dedicated to show news, where there is a button ( tag ) that opens a new tab with the news. The problem occurs there, at the time I invoke the function by the attribute onclick! For desktop format, the link works normally, but when I'm with the site responsive to mobile, the function is not even called! I would like opinions ...
I use the MaterializeCSS framework for responsiveness.
Code
<a class="btn waves-effect" onclick="openLink('https://g1.globo.com/carros/noticia/fabricantes-de-veiculos-devem-retomar-producao-na-proxima-segunda-vendas-de-maio-devem-despencar.ghtml');">Saiba mais</a>
function openLink(link){
window.open(link, '_system');
}
NOTE: I am creating the tag and assigning values by JS.