Button with link but open an other page

Hello everyone,

ok, let me explain a little, I would like a button redirect a certain URL (not dynamic, each time it will be the same).

But actually, when I put my :

window.location.href ="https://url.aspx"

or

window.open("https://url.aspx", "_self");

On the "click" event action, it just redirect throught my page. I would like open a new one by clicking on this button, a new window.

Is it possible ? any ideas.

Thanks in advance,

Hi @lolopixxx,

Try

window.open('https://url.aspx', '_blank', 'location=yes').focus();
1 Like

I like it !!! thanks again lliaLazarevskii :slight_smile: !