Link on button?
Alex

Hello. Sorry if this is obvious but I can not find a solution. How to make it so that when you click on a button, you are redirected to an external web site?

I already know about OnMouseDown function.

All 2 Comments
Gio

In your onMouseDown function, add the following code:

window.open(url);

or to open it in a new tab:

window.open(url, '_blank');

 

Alex

Thank you so much! You saved me for the second time!

Post a reply
Add Attachment
Submit Reply
Login to Reply