Link open on another page

Asked

Viewed 27 times

0

I have a button in a form that is responsible for generating a report, but I need this report to be generated in another page. The button is mounted as follows.

<a title=\"Gerar relatório\" href=\"'+$('#base-url').val()+'/relatorio/gerar_relatorio/'+v.cod+'\"></a>

And it’s working normal, I just need it to open a new tab instead of running in it.

  • 3

    Puts a target="_blank" on the tag <a>.

  • 2

    Got an answer from you about that, didn’t you @Sam ? Pass the link to him.

  • 2

    Here: https://answall.com/questions/349963/diferen%C3%A7a-entre-Blank-self-e-Blank-self

  • 2

    @Andreicoelho That’s right!

  • 1

    Personal thank you.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.